From c5cb22b81a0986e93c0254bcc67d41842687ebc6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Feb 2022 09:25:54 +0000 Subject: [PATCH] CodeGen from PR 17490 in Azure/azure-rest-api-specs [OperationalInsights] Remove unsupported version 2021-06-01 for "Tables" resource (#17490) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 * Removed unsuported version 2021-06 for resource Tables ,update Readme.md file Co-authored-by: jsedlak-microsoft <65620804+jsedlak-microsoft@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: Zed Lei <59104634+RAY-316@users.noreply.github.com> Co-authored-by: Jimmy Campbell Co-authored-by: Suna Liu Co-authored-by: varun kumar kunchakuri <66476965+vakuncha@users.noreply.github.com> 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: jdhms <77470403+jdhms@users.noreply.github.com> 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: Joshua McCarthy Co-authored-by: jmccarthy 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: Ji Wang 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: Mel M <50640763+melmullen@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 --- common/config/rush/pnpm-lock.yaml | 40 +- .../arm-operationalinsights/CHANGELOG.md | 70 +- .../arm-operationalinsights/LICENSE | 2 +- .../arm-operationalinsights/README.md | 2 +- .../arm-operationalinsights/_meta.json | 6 +- .../api-extractor.json | 25 +- .../arm-operationalinsights/package.json | 8 +- .../review/arm-operationalinsights.api.md | 201 +- .../src/models/index.ts | 1351 ++++++---- .../src/models/mappers.ts | 2324 ++++++++++------- .../src/models/parameters.ts | 162 +- .../operationalInsightsManagementClient.ts | 46 +- .../src/operations/availableServiceTiers.ts | 2 +- .../src/operations/clusters.ts | 12 +- .../src/operations/dataExports.ts | 10 +- .../src/operations/dataSources.ts | 16 +- .../src/operations/deletedWorkspaces.ts | 4 +- .../src/operations/gateways.ts | 2 +- .../src/operations/index.ts | 10 +- .../src/operations/intelligencePacks.ts | 6 +- .../src/operations/linkedServices.ts | 10 +- .../src/operations/linkedStorageAccounts.ts | 10 +- .../src/operations/managementGroups.ts | 2 +- .../src/operations/operationStatuses.ts | 2 +- .../src/operations/operations.ts | 4 +- .../src/operations/savedSearches.ts | 10 +- .../{schema.ts => schemaOperations.ts} | 10 +- .../src/operations/sharedKeysOperations.ts | 4 +- .../src/operations/storageInsightConfigs.ts | 16 +- .../src/operations/tables.ts | 326 ++- .../src/operations/usages.ts | 2 +- .../src/operations/workspacePurge.ts | 4 +- .../src/operations/workspaces.ts | 16 +- .../src/operationsInterfaces/index.ts | 10 +- .../{schema.ts => schemaOperations.ts} | 4 +- .../src/operationsInterfaces/tables.ts | 85 +- .../arm-operationalinsights/tsconfig.json | 16 +- 37 files changed, 3101 insertions(+), 1729 deletions(-) rename sdk/operationalinsights/arm-operationalinsights/src/operations/{schema.ts => schemaOperations.ts} (86%) rename sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/{schema.ts => schemaOperations.ts} (88%) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 5d1b43e1600f..320196557700 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -631,6 +631,21 @@ packages: - supports-color dev: false + /@azure/arm-operationalinsights/8.0.0: + resolution: {integrity: sha512-YYeOOCajQvqaK/boY8VYkGK0SX5k+QUUtDvRYfmQBBLVPbLHiM5PsoWkIrb/1GpRyl+E+KX0n1o+yZDWU7pPLQ==} + engines: {node: '>=12.0.0'} + dependencies: + '@azure/abort-controller': 1.0.4 + '@azure/core-auth': 1.3.2 + '@azure/core-client': 1.4.0 + '@azure/core-lro': 2.2.3 + '@azure/core-paging': 1.2.1 + '@azure/core-rest-pipeline': 1.4.0 + tslib: 2.3.1 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-common/1.1.0: resolution: {integrity: sha512-vqTtzDtb4NG3LWoWoqlOOJApZRRIIImNUKlGyTa6c1YC+v5A7UEOL9TX8NRDxvFVUF2wDHsSnkhLBVBgkcAhIQ==} engines: {node: '>=12.0.0'} @@ -11018,11 +11033,12 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-fGEPUwHrAFIOY7+1ZoH/b4M+AgudqMrq42bQJTcvBtZXpPz5CaTn3DQmJpPQEUultLOwocA/k9NOsXEk+BxrHQ==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-iY2+1jOT5LG5jdiWc8M5rFVQA3+oHGAs1OjAC/p4A3XZdIv7BR9lWnmupOht2Ils0E2vQ52sYf+DHQXMRJUfMw==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 + '@azure/arm-operationalinsights': 8.0.0 '@microsoft/api-extractor': 7.19.4 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.1.0_rollup@1.32.1 @@ -11193,22 +11209,22 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-nqfFGbrU9LH4cu3F1Us/p1ZBDeEUCiobwbgbm/1+e0jqKpNWrTjXQ89WYWGM0tUREmgxOOpzYojgAhho8H2rvg==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-Z1LtfjTTB0gUbhF3V/3tMil95KRu75U+qvrFwfrORaV9OKP2IL64INaBLdZlfgP+BLhpuq94wSyM+euxavx/qA==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.1_rollup@2.66.1 - '@rollup/plugin-json': 4.1.0_rollup@2.66.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.66.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.66.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.66.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.66.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 @@ -14906,7 +14922,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-VgQHNefK86fzHOi0cygpHZC2D3hUr/RaubfDXBfMUREwuaYaN+bocDDHjlTxXaPx4D2qSC4vGVH5l6NYSdksbw==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-Yr+M8WwBsngMTQg81CxTA4LnpQrFmcmCfjbKMkKHrnYeKbpY+u949zpJXWvwGiOCAN7T/eW5BcOvK8IPds5I4A==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -14949,7 +14965,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -15877,7 +15892,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-ENpAvvdCwGkqJ4unWOWpywLDjQIYT2+T+YqE7QarLd7IMf+aWx6HLFlhlvUpgNM0Tw8oL3txyCOGvI6rFqtz+Q==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-v95+TnIgfPJtOulZuW73xOA/OgPCA72RP5aMD0ZAlp3qJNclhxBxULu3r7TUdQVfRrPqKuJaAGCiLUCLPqFRuQ==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -15923,7 +15938,6 @@ packages: - '@swc/wasm' - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -16927,7 +16941,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-8EEE22d16CmEuerZx9Ujjt93Cp95PU6AuX15zwcHxvu83uTk0/ZEKPFleSpUijzF87q4KvhX8RVrxbrec1p0mA==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-S3B5Djij2dsoN1DIjNhDf/kW+X66TXFixQJTh9io/179afvCTqf1KUeiyLXs4iqiUYhTmBW2fxeybwxdFJ4EdA==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: diff --git a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md index 241df1494951..d4baa1d2d231 100644 --- a/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md +++ b/sdk/operationalinsights/arm-operationalinsights/CHANGELOG.md @@ -1,15 +1,69 @@ # Release History + +## 9.0.0-beta.1 (2022-02-07) + +**Features** -## 8.0.1 (Unreleased) + - Added operation group SchemaOperations + - Added operation Tables.beginCreateOrUpdate + - Added operation Tables.beginCreateOrUpdateAndWait + - Added operation Tables.beginDelete + - Added operation Tables.beginDeleteAndWait + - Added operation Tables.beginUpdate + - Added operation Tables.beginUpdateAndWait + - Added Interface Column + - Added Interface RestoredLogs + - Added Interface ResultStatistics + - Added Interface Schema + - Added Interface SearchResults + - Added Interface SystemData + - Added Interface TablesCreateOrUpdateOptionalParams + - Added Interface TablesDeleteOptionalParams + - Added Type Alias ColumnDataTypeHintEnum + - Added Type Alias ColumnTypeEnum + - Added Type Alias CreatedByType + - Added Type Alias ProvisioningStateEnum + - Added Type Alias SourceEnum + - Added Type Alias TablePlanEnum + - Added Type Alias TablesCreateOrUpdateResponse + - Added Type Alias TableSubTypeEnum + - Added Type Alias TableTypeEnum + - Interface TablesUpdateOptionalParams has a new optional parameter resumeFrom + - Interface TablesUpdateOptionalParams has a new optional parameter updateIntervalInMs + - Class OperationalInsightsManagementClient has a new parameter schemaOperations + - Type Alias Table has a new parameter systemData + - Type Alias Table has a new parameter totalRetentionInDays + - Type Alias Table has a new parameter archiveRetentionInDays + - Type Alias Table has a new parameter searchResults + - Type Alias Table has a new parameter restoredLogs + - Type Alias Table has a new parameter resultStatistics + - Type Alias Table has a new parameter plan + - Type Alias Table has a new parameter lastPlanModifiedDate + - Type Alias Table has a new parameter schema + - Type Alias Table has a new parameter provisioningState + - Type Alias Workspace has a new parameter systemData + - Type Alias Workspace has a new parameter defaultDataCollectionRuleResourceId + - Type Alias WorkspacePatch has a new parameter defaultDataCollectionRuleResourceId + - Added Enum KnownColumnDataTypeHintEnum + - Added Enum KnownColumnTypeEnum + - Added Enum KnownCreatedByType + - Added Enum KnownProvisioningStateEnum + - Added Enum KnownSourceEnum + - Added Enum KnownTablePlanEnum + - Added Enum KnownTableSubTypeEnum + - Added Enum KnownTableTypeEnum -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Removed operation group Schema + - Removed operation Tables.create + - Removed operation Tables.update + - Class OperationalInsightsManagementClient no longer has parameter schema + - Type Alias Table no longer has parameter isTroubleshootingAllowed + - Type Alias Table no longer has parameter isTroubleshootEnabled + - Type Alias Table no longer has parameter lastTroubleshootDate + + ## 8.0.0 (2021-12-14) The package of @azure/arm-operationalinsights is using our next generation design principles since version 8.0.0, which contains breaking changes. diff --git a/sdk/operationalinsights/arm-operationalinsights/LICENSE b/sdk/operationalinsights/arm-operationalinsights/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/operationalinsights/arm-operationalinsights/LICENSE +++ b/sdk/operationalinsights/arm-operationalinsights/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md index 92b533096dd9..ef60c84fbe53 100644 --- a/sdk/operationalinsights/arm-operationalinsights/README.md +++ b/sdk/operationalinsights/arm-operationalinsights/README.md @@ -6,7 +6,7 @@ Operational Insights Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/operationalinsights/arm-operationalinsights) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-operationalinsights) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-operationalinsights) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-operationalinsights?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/operationalinsights/arm-operationalinsights/_meta.json b/sdk/operationalinsights/arm-operationalinsights/_meta.json index bee68d8804c8..21d62862c9be 100644 --- a/sdk/operationalinsights/arm-operationalinsights/_meta.json +++ b/sdk/operationalinsights/arm-operationalinsights/_meta.json @@ -1,7 +1,7 @@ { - "commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff", + "commit": "d28ca2c20aefe62cbe327641f7b8ed3a129f0486", "readme": "specification/operationalinsights/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/operationalinsights/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/api-extractor.json b/sdk/operationalinsights/arm-operationalinsights/api-extractor.json index 22d2bd212360..fe8e37dd3918 100644 --- a/sdk/operationalinsights/arm-operationalinsights/api-extractor.json +++ b/sdk/operationalinsights/arm-operationalinsights/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-operationalinsights.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index 0f42591043bb..0435a1b580fe 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for OperationalInsightsManagementClient.", - "version": "8.0.1", + "version": "9.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-operationalinsights.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md index 0f2b52d6a16b..26fe5b473d5a 100644 --- a/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md +++ b/sdk/operationalinsights/arm-operationalinsights/review/arm-operationalinsights.api.md @@ -178,12 +178,32 @@ export interface ClustersUpdateOptionalParams extends coreClient.OperationOption // @public export type ClustersUpdateResponse = Cluster; +// @public +export interface Column { + dataTypeHint?: ColumnDataTypeHintEnum; + description?: string; + displayName?: string; + readonly isDefaultDisplay?: boolean; + readonly isHidden?: boolean; + name?: string; + type?: ColumnTypeEnum; +} + +// @public +export type ColumnDataTypeHintEnum = string; + +// @public +export type ColumnTypeEnum = string; + // @public export interface CoreSummary { numberOfDocuments: number; status?: string; } +// @public +export type CreatedByType = string; + // @public export type DataExport = ProxyResource & { dataExportId?: string; @@ -437,6 +457,46 @@ export enum KnownClusterSkuNameEnum { CapacityReservation = "CapacityReservation" } +// @public +export enum KnownColumnDataTypeHintEnum { + ArmPath = "armPath", + Guid = "guid", + Ip = "ip", + Uri = "uri" +} + +// @public +export enum KnownColumnTypeEnum { + // (undocumented) + Boolean = "boolean", + // (undocumented) + DateTime = "dateTime", + // (undocumented) + Dynamic = "dynamic", + // (undocumented) + Guid = "guid", + // (undocumented) + Int = "int", + // (undocumented) + Long = "long", + // (undocumented) + Real = "real", + // (undocumented) + String = "string" +} + +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + // @public export enum KnownDataIngestionStatus { ApproachingQuota = "ApproachingQuota", @@ -529,6 +589,13 @@ export enum KnownLinkedServiceEntityStatus { Updating = "Updating" } +// @public +export enum KnownProvisioningStateEnum { + InProgress = "InProgress", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownPublicNetworkAccessType { Disabled = "Disabled", @@ -569,6 +636,12 @@ export enum KnownSkuNameEnum { Standard = "Standard" } +// @public +export enum KnownSourceEnum { + Customer = "customer", + Microsoft = "microsoft" +} + // @public export enum KnownStorageInsightState { // (undocumented) @@ -577,6 +650,27 @@ export enum KnownStorageInsightState { OK = "OK" } +// @public +export enum KnownTablePlanEnum { + Analytics = "Analytics", + Basic = "Basic" +} + +// @public +export enum KnownTableSubTypeEnum { + Any = "Any", + Classic = "Classic", + DataCollectionRuleBased = "DataCollectionRuleBased" +} + +// @public +export enum KnownTableTypeEnum { + CustomLog = "CustomLog", + Microsoft = "Microsoft", + RestoredLogs = "RestoredLogs", + SearchResults = "SearchResults" +} + // @public export enum KnownType { // (undocumented) @@ -795,7 +889,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien // (undocumented) savedSearches: SavedSearches; // (undocumented) - schema: Schema; + schemaOperations: SchemaOperations; // (undocumented) sharedKeysOperations: SharedKeysOperations; // (undocumented) @@ -879,6 +973,9 @@ export interface PrivateLinkScopedResource { scopeId?: string; } +// @public +export type ProvisioningStateEnum = string; + // @public export type ProxyResource = Resource & {}; @@ -895,6 +992,19 @@ export interface Resource { readonly type?: string; } +// @public +export interface RestoredLogs { + endRestoreTime?: Date; + readonly sourceTable?: string; + startRestoreTime?: Date; +} + +// @public +export interface ResultStatistics { + readonly ingestedRecords?: number; + readonly progress?: number; +} + // @public export type SavedSearch = ProxyResource & { etag?: string; @@ -947,7 +1057,19 @@ export interface SavedSearchesListResult { // @public export interface Schema { - get(resourceGroupName: string, workspaceName: string, options?: SchemaGetOptionalParams): Promise; + readonly categories?: string[]; + columns?: Column[]; + description?: string; + displayName?: string; + readonly labels?: string[]; + name?: string; + readonly restoredLogs?: RestoredLogs; + readonly searchResults?: SearchResults; + readonly solutions?: string[]; + readonly source?: SourceEnum; + readonly standardColumns?: Column[]; + readonly tableSubType?: TableSubTypeEnum; + readonly tableType?: TableTypeEnum; } // @public @@ -957,6 +1079,11 @@ export interface SchemaGetOptionalParams extends coreClient.OperationOptions { // @public export type SchemaGetResponse = SearchGetSchemaResponse; +// @public +export interface SchemaOperations { + get(resourceGroupName: string, workspaceName: string, options?: SchemaGetOptionalParams): Promise; +} + // @public export interface SearchGetSchemaResponse { metadata?: SearchMetadata; @@ -990,6 +1117,16 @@ export interface SearchMetadataSchema { version?: number; } +// @public +export interface SearchResults { + description?: string; + endSearchTime?: Date; + limit?: number; + query?: string; + readonly sourceTable?: string; + startSearchTime?: Date; +} + // @public export interface SearchSchemaValue { displayName?: string; @@ -1039,6 +1176,9 @@ export type SharedKeysRegenerateResponse = SharedKeys; // @public export type SkuNameEnum = string; +// @public +export type SourceEnum = string; + // @public export interface StorageAccount { id: string; @@ -1112,28 +1252,60 @@ export interface StorageInsightStatus { state: StorageInsightState; } +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + // @public export type Table = ProxyResource & { + readonly systemData?: SystemData; retentionInDays?: number; - readonly isTroubleshootingAllowed?: boolean; - isTroubleshootEnabled?: boolean; - readonly lastTroubleshootDate?: string; + totalRetentionInDays?: number; + readonly archiveRetentionInDays?: number; + searchResults?: SearchResults; + restoredLogs?: RestoredLogs; + resultStatistics?: ResultStatistics; + plan?: TablePlanEnum; + readonly lastPlanModifiedDate?: string; + schema?: Schema; + readonly provisioningState?: ProvisioningStateEnum; }; +// @public +export type TablePlanEnum = string; + // @public export interface Tables { - create(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesCreateOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesCreateOrUpdateOptionalParams): Promise, TablesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams): Promise, TablesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, tableName: string, options?: TablesGetOptionalParams): Promise; listByWorkspace(resourceGroupName: string, workspaceName: string, options?: TablesListByWorkspaceOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams): Promise; } // @public -export interface TablesCreateOptionalParams extends coreClient.OperationOptions { +export interface TablesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type TablesCreateResponse = Table; +export type TablesCreateOrUpdateResponse = Table; + +// @public +export interface TablesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public export interface TablesGetOptionalParams extends coreClient.OperationOptions { @@ -1154,13 +1326,21 @@ export interface TablesListResult { value?: Table[]; } +// @public +export type TableSubTypeEnum = string; + // @public export interface TablesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public export type TablesUpdateResponse = Table; +// @public +export type TableTypeEnum = string; + // @public export interface Tag { name: string; @@ -1208,6 +1388,7 @@ export interface UserIdentityProperties { // @public export type Workspace = TrackedResource & { + readonly systemData?: SystemData; eTag?: string; provisioningState?: WorkspaceEntityStatus; readonly customerId?: string; @@ -1221,6 +1402,7 @@ export type Workspace = TrackedResource & { forceCmkForQuery?: boolean; readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; features?: WorkspaceFeatures; + defaultDataCollectionRuleResourceId?: string; }; // @public @@ -1275,6 +1457,7 @@ export type WorkspacePatch = AzureEntityResource & { forceCmkForQuery?: boolean; readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; features?: WorkspaceFeatures; + defaultDataCollectionRuleResourceId?: string; }; // @public diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index 1c2538c724e2..4564ddd50cc5 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -8,29 +8,35 @@ import * as coreClient from "@azure/core-client"; -/** Result of the request to list data exports. */ -export interface DataExportListResult { - /** List of data export instances within a workspace.. */ - value?: DataExport[]; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Result of the request to list solution operations. */ +export interface OperationListResult { + /** List of solution operations supported by the OperationsManagement resource provider. */ + value?: Operation[]; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * URL to get the next set of operation list results if there are any. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly nextLink?: string; +} + +/** Supported operation of OperationalInsights resource provider. */ +export interface Operation { + /** Operation name: {provider}/{resource}/{operation} */ + name?: string; + /** Display metadata associated with the operation. */ + display?: OperationDisplay; +} + +/** Display metadata associated with the operation. */ +export interface OperationDisplay { + /** Service provider: Microsoft OperationsManagement. */ + provider?: string; + /** Resource on which the operation is performed etc. */ + resource?: string; + /** Type of operation: get, read, delete, etc. */ + operation?: string; + /** Description of operation */ + description?: string; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -82,6 +88,239 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } +/** The list workspaces operation response. */ +export interface WorkspaceListResult { + /** A list of workspaces. */ + value?: Workspace[]; +} + +/** The SKU (tier) of a workspace. */ +export interface WorkspaceSku { + /** The name of the SKU. */ + name: WorkspaceSkuNameEnum; + /** The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected. */ + capacityReservationLevel?: CapacityReservationLevel; + /** + * The last time when the sku was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastSkuUpdate?: string; +} + +/** The daily volume cap for ingestion. */ +export interface WorkspaceCapping { + /** The workspace daily quota for ingestion. */ + dailyQuotaGb?: number; + /** + * The time when the quota will be rest. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly quotaNextResetTime?: string; + /** + * The status of data ingestion for this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataIngestionStatus?: DataIngestionStatus; +} + +/** The private link scope resource reference. */ +export interface PrivateLinkScopedResource { + /** The full resource Id of the private link scope resource. */ + resourceId?: string; + /** The private link scope unique Identifier. */ + scopeId?: string; +} + +/** Workspace features. */ +export interface WorkspaceFeatures { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Flag that indicate if data should be exported. */ + enableDataExport?: boolean; + /** Flag that describes if we want to remove the data after 30 days. */ + immediatePurgeDataOn30Days?: boolean; + /** Flag that indicate which permission to use - resource or workspace or both. */ + enableLogAccessUsingOnlyResourcePermissions?: boolean; + /** Dedicated LA cluster resourceId that is linked to the workspaces. */ + clusterResourceId?: string; + /** Disable Non-AAD based Auth. */ + disableLocalAuth?: boolean; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** The list tables operation response. */ +export interface TablesListResult { + /** A list of data tables. */ + value?: Table[]; +} + +/** Parameters of the search job that initiated this table. */ +export interface SearchResults { + /** Search job query. */ + query?: string; + /** Search results table's Description. */ + description?: string; + /** Limit the search job to return up to specified number of rows. */ + limit?: number; + /** The timestamp to start the search from (UTC) */ + startSearchTime?: Date; + /** The timestamp to end the search by (UTC) */ + endSearchTime?: Date; + /** + * The table to search data from. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceTable?: string; +} + +/** Restore parameters. */ +export interface RestoredLogs { + /** The timestamp to start the restore from (UTC). */ + startRestoreTime?: Date; + /** The timestamp to end the restore by (UTC). */ + endRestoreTime?: Date; + /** + * The table to restore data from. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceTable?: string; +} + +/** Search job execution statistics. */ +export interface ResultStatistics { + /** + * Search job completion percentage. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly progress?: number; + /** + * The number of rows that were returned by the search job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestedRecords?: number; +} + +/** Table's schema. */ +export interface Schema { + /** Table name. */ + name?: string; + /** Table display name. */ + displayName?: string; + /** Table description. */ + description?: string; + /** A list of table custom columns. */ + columns?: Column[]; + /** + * A list of table standard columns. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly standardColumns?: Column[]; + /** + * Table category. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly categories?: string[]; + /** + * Table labels. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly labels?: string[]; + /** + * Table's creator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly source?: SourceEnum; + /** + * Table's creator. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tableType?: TableTypeEnum; + /** + * The subtype describes what APIs can be used to interact with the table, and what features are available against it. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tableSubType?: TableSubTypeEnum; + /** + * List of solutions the table is affiliated with + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly solutions?: string[]; + /** + * Parameters of the search job that initiated this table. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly searchResults?: SearchResults; + /** + * Parameters of the restore operation that initiated this table. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly restoredLogs?: RestoredLogs; +} + +/** Table column. */ +export interface Column { + /** Column name. */ + name?: string; + /** Column data type. */ + type?: ColumnTypeEnum; + /** Column data type logical hint. */ + dataTypeHint?: ColumnDataTypeHintEnum; + /** Column display name. */ + displayName?: string; + /** Column description. */ + description?: string; + /** + * Is displayed by default. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDefaultDisplay?: boolean; + /** + * Is column hidden. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isHidden?: boolean; +} + +/** Result of the request to list data exports. */ +export interface DataExportListResult { + /** List of data export instances within a workspace.. */ + value?: DataExport[]; +} + /** The list data source by workspace operation response. */ export interface DataSourceListResult { /** A list of datasources. */ @@ -389,43 +628,6 @@ export interface WorkspacePurgeStatusResponse { status: PurgeState; } -/** Result of the request to list solution operations. */ -export interface OperationListResult { - /** List of solution operations supported by the OperationsManagement resource provider. */ - value?: Operation[]; - /** - * URL to get the next set of operation list results if there are any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Supported operation of OperationalInsights resource provider. */ -export interface Operation { - /** Operation name: {provider}/{resource}/{operation} */ - name?: string; - /** Display metadata associated with the operation. */ - display?: OperationDisplay; -} - -/** Display metadata associated with the operation. */ -export interface OperationDisplay { - /** Service provider: Microsoft OperationsManagement. */ - provider?: string; - /** Resource on which the operation is performed etc. */ - resource?: string; - /** Type of operation: get, read, delete, etc. */ - operation?: string; - /** Description of operation */ - description?: string; -} - -/** The list tables operation response. */ -export interface TablesListResult { - /** A list of data tables. */ - value?: Table[]; -} - /** The list clusters operation response. */ export interface ClusterListResult { /** The link used to get the next page of recommendations. */ @@ -538,74 +740,12 @@ export interface ClusterPatch { billingType?: BillingType; } -/** The list workspaces operation response. */ -export interface WorkspaceListResult { - /** A list of workspaces. */ - value?: Workspace[]; +/** DataSource filter. Right now, only filter by kind is supported. */ +export interface DataSourceFilter { + /** The kind of the DataSource. */ + kind?: DataSourceKind; } -/** The SKU (tier) of a workspace. */ -export interface WorkspaceSku { - /** The name of the SKU. */ - name: WorkspaceSkuNameEnum; - /** The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected. */ - capacityReservationLevel?: CapacityReservationLevel; - /** - * The last time when the sku was updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastSkuUpdate?: string; -} - -/** The daily volume cap for ingestion. */ -export interface WorkspaceCapping { - /** The workspace daily quota for ingestion. */ - dailyQuotaGb?: number; - /** - * The time when the quota will be rest. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly quotaNextResetTime?: string; - /** - * The status of data ingestion for this workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataIngestionStatus?: DataIngestionStatus; -} - -/** The private link scope resource reference. */ -export interface PrivateLinkScopedResource { - /** The full resource Id of the private link scope resource. */ - resourceId?: string; - /** The private link scope unique Identifier. */ - scopeId?: string; -} - -/** Workspace features. */ -export interface WorkspaceFeatures { - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; - /** Flag that indicate if data should be exported. */ - enableDataExport?: boolean; - /** Flag that describes if we want to remove the data after 30 days. */ - immediatePurgeDataOn30Days?: boolean; - /** Flag that indicate which permission to use - resource or workspace or both. */ - enableLogAccessUsingOnlyResourcePermissions?: boolean; - /** Dedicated LA cluster resourceId that is linked to the workspaces. */ - clusterResourceId?: string; - /** Disable Non-AAD based Auth. */ - disableLocalAuth?: boolean; -} - -/** DataSource filter. Right now, only filter by kind is supported. */ -export interface DataSourceFilter { - /** The kind of the DataSource. */ - kind?: DataSourceKind; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource & {}; - /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export type TrackedResource = Resource & { /** Resource tags. */ @@ -623,6 +763,180 @@ export type AzureEntityResource = Resource & { readonly etag?: string; }; +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export type ProxyResource = Resource & {}; + +/** The top level Workspace resource container. */ +export type Workspace = TrackedResource & { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The ETag of the workspace. */ + eTag?: string; + /** The provisioning state of the workspace. */ + provisioningState?: WorkspaceEntityStatus; + /** + * This is a read-only property. Represents the ID associated with the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customerId?: string; + /** The SKU of the workspace. */ + sku?: WorkspaceSku; + /** The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */ + retentionInDays?: number; + /** The daily volume cap for ingestion. */ + workspaceCapping?: WorkspaceCapping; + /** + * Workspace creation date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDate?: string; + /** + * Workspace modification date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modifiedDate?: string; + /** The network access type for accessing Log Analytics ingestion. */ + publicNetworkAccessForIngestion?: PublicNetworkAccessType; + /** The network access type for accessing Log Analytics query. */ + publicNetworkAccessForQuery?: PublicNetworkAccessType; + /** Indicates whether customer managed storage is mandatory for query management. */ + forceCmkForQuery?: boolean; + /** + * List of linked private link scope resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** Workspace features. */ + features?: WorkspaceFeatures; + /** The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. */ + defaultDataCollectionRuleResourceId?: string; +}; + +/** The top level Log Analytics cluster resource container. */ +export type Cluster = TrackedResource & { + /** The identity of the resource. */ + identity?: Identity; + /** The sku properties. */ + sku?: ClusterSku; + /** + * The ID associated with the cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly clusterId?: string; + /** + * The provisioning state of the cluster. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ClusterEntityStatus; + /** Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true' */ + isDoubleEncryptionEnabled?: boolean; + /** 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. */ + isAvailabilityZonesEnabled?: boolean; + /** The cluster's billing type. */ + billingType?: BillingType; + /** The associated key properties. */ + keyVaultProperties?: KeyVaultProperties; + /** + * The last time the cluster was updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastModifiedDate?: string; + /** + * The cluster creation time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDate?: string; + /** The list of Log Analytics workspaces associated with the cluster */ + associatedWorkspaces?: AssociatedWorkspace[]; + /** Additional properties for capacity reservation */ + capacityReservationProperties?: CapacityReservationProperties; +}; + +/** The top level Workspace resource container. */ +export type WorkspacePatch = AzureEntityResource & { + /** Resource tags. Optional. */ + tags?: { [propertyName: string]: string }; + /** The provisioning state of the workspace. */ + provisioningState?: WorkspaceEntityStatus; + /** + * This is a read-only property. Represents the ID associated with the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly customerId?: string; + /** The SKU of the workspace. */ + sku?: WorkspaceSku; + /** The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */ + retentionInDays?: number; + /** The daily volume cap for ingestion. */ + workspaceCapping?: WorkspaceCapping; + /** + * Workspace creation date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDate?: string; + /** + * Workspace modification date. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modifiedDate?: string; + /** The network access type for accessing Log Analytics ingestion. */ + publicNetworkAccessForIngestion?: PublicNetworkAccessType; + /** The network access type for accessing Log Analytics query. */ + publicNetworkAccessForQuery?: PublicNetworkAccessType; + /** Indicates whether customer managed storage is mandatory for query management. */ + forceCmkForQuery?: boolean; + /** + * List of linked private link scope resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** Workspace features. */ + features?: WorkspaceFeatures; + /** The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}. */ + defaultDataCollectionRuleResourceId?: string; +}; + +/** Workspace data table definition. */ +export type Table = ProxyResource & { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The data table data retention in days, between 4 and 730. Setting this property to null will default to the workspace retention. */ + retentionInDays?: number; + /** The table data total retention in days, between 4 and 2555. Setting this property to null will default to table retention. */ + totalRetentionInDays?: number; + /** + * The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly archiveRetentionInDays?: number; + /** Parameters of the search job that initiated this table. */ + searchResults?: SearchResults; + /** Parameters of the restore operation that initiated this table. */ + restoredLogs?: RestoredLogs; + /** Search job execution statistics. */ + resultStatistics?: ResultStatistics; + /** The table plan. */ + plan?: TablePlanEnum; + /** + * The timestamp that table plan was last modified (UTC). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastPlanModifiedDate?: string; + /** Table schema. */ + schema?: Schema; + /** + * Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; +}; + /** The top level data export resource container. */ export type DataExport = ProxyResource & { /** The data export rule ID. */ @@ -720,154 +1034,288 @@ export type SavedSearch = ProxyResource & { tags?: Tag[]; }; -/** Workspace data table definition. */ -export type Table = ProxyResource & { - /** The data table data retention in days, between 7 and 730. Setting this property to null will default to the workspace retention. */ - retentionInDays?: number; - /** - * Specifies if IsTroubleshootingEnabled property can be set for this table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isTroubleshootingAllowed?: boolean; - /** Enable or disable troubleshoot for this table. */ - isTroubleshootEnabled?: boolean; - /** - * Last time when troubleshooting was set for this table. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastTroubleshootDate?: string; -}; +/** Defines headers for WorkspacePurge_purge operation. */ +export interface WorkspacePurgePurgeHeaders { + /** The location from which to request the operation status. */ + xMsStatusLocation?: string; +} + +/** Known values of {@link WorkspaceEntityStatus} that the service accepts. */ +export enum KnownWorkspaceEntityStatus { + Creating = "Creating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + Deleting = "Deleting", + ProvisioningAccount = "ProvisioningAccount", + Updating = "Updating" +} + +/** + * Defines values for WorkspaceEntityStatus. \ + * {@link KnownWorkspaceEntityStatus} can be used interchangeably with WorkspaceEntityStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Deleting** \ + * **ProvisioningAccount** \ + * **Updating** + */ +export type WorkspaceEntityStatus = string; + +/** Known values of {@link WorkspaceSkuNameEnum} that the service accepts. */ +export enum KnownWorkspaceSkuNameEnum { + Free = "Free", + Standard = "Standard", + Premium = "Premium", + PerNode = "PerNode", + PerGB2018 = "PerGB2018", + Standalone = "Standalone", + CapacityReservation = "CapacityReservation", + LACluster = "LACluster" +} + +/** + * Defines values for WorkspaceSkuNameEnum. \ + * {@link KnownWorkspaceSkuNameEnum} can be used interchangeably with WorkspaceSkuNameEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Free** \ + * **Standard** \ + * **Premium** \ + * **PerNode** \ + * **PerGB2018** \ + * **Standalone** \ + * **CapacityReservation** \ + * **LACluster** + */ +export type WorkspaceSkuNameEnum = string; + +/** Known values of {@link DataIngestionStatus} that the service accepts. */ +export enum KnownDataIngestionStatus { + /** Ingestion enabled following daily cap quota reset, or subscription enablement. */ + RespectQuota = "RespectQuota", + /** Ingestion started following service setting change. */ + ForceOn = "ForceOn", + /** Ingestion stopped following service setting change. */ + ForceOff = "ForceOff", + /** Reached daily cap quota, ingestion stopped. */ + OverQuota = "OverQuota", + /** Ingestion stopped following suspended subscription. */ + SubscriptionSuspended = "SubscriptionSuspended", + /** 80% of daily cap quota reached. */ + ApproachingQuota = "ApproachingQuota" +} + +/** + * Defines values for DataIngestionStatus. \ + * {@link KnownDataIngestionStatus} can be used interchangeably with DataIngestionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RespectQuota**: Ingestion enabled following daily cap quota reset, or subscription enablement. \ + * **ForceOn**: Ingestion started following service setting change. \ + * **ForceOff**: Ingestion stopped following service setting change. \ + * **OverQuota**: Reached daily cap quota, ingestion stopped. \ + * **SubscriptionSuspended**: Ingestion stopped following suspended subscription. \ + * **ApproachingQuota**: 80% of daily cap quota reached. + */ +export type DataIngestionStatus = string; + +/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ +export enum KnownPublicNetworkAccessType { + /** Enables connectivity to Log Analytics through public DNS. */ + Enabled = "Enabled", + /** Disables public connectivity to Log Analytics through public DNS. */ + Disabled = "Disabled" +} + +/** + * Defines values for PublicNetworkAccessType. \ + * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled**: Enables connectivity to Log Analytics through public DNS. \ + * **Disabled**: Disables public connectivity to Log Analytics through public DNS. + */ +export type PublicNetworkAccessType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link TablePlanEnum} that the service accepts. */ +export enum KnownTablePlanEnum { + /** Basic - logs that are adjusted to support high volume / low value verbose logs. */ + Basic = "Basic", + /** Analytics - logs that allow monitoring and analytics. */ + Analytics = "Analytics" +} + +/** + * Defines values for TablePlanEnum. \ + * {@link KnownTablePlanEnum} can be used interchangeably with TablePlanEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic**: Basic - logs that are adjusted to support high volume \/ low value verbose logs. \ + * **Analytics**: Analytics - logs that allow monitoring and analytics. + */ +export type TablePlanEnum = string; + +/** Known values of {@link ColumnTypeEnum} that the service accepts. */ +export enum KnownColumnTypeEnum { + String = "string", + Int = "int", + Long = "long", + Real = "real", + Boolean = "boolean", + DateTime = "dateTime", + Guid = "guid", + Dynamic = "dynamic" +} + +/** + * Defines values for ColumnTypeEnum. \ + * {@link KnownColumnTypeEnum} can be used interchangeably with ColumnTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **string** \ + * **int** \ + * **long** \ + * **real** \ + * **boolean** \ + * **dateTime** \ + * **guid** \ + * **dynamic** + */ +export type ColumnTypeEnum = string; + +/** Known values of {@link ColumnDataTypeHintEnum} that the service accepts. */ +export enum KnownColumnDataTypeHintEnum { + /** A string that matches the pattern of a URI, for example, scheme://username:password@host:1234/this/is/a/path?k1=v1&k2=v2#fragment */ + Uri = "uri", + /** A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx */ + Guid = "guid", + /** An Azure Resource Model (ARM) path: /subscriptions/{...}/resourceGroups/{...}/providers/Microsoft.{...}/{...}/{...}/{...}... */ + ArmPath = "armPath", + /** A standard V4/V6 ip address following the standard shape, x.x.x.x/y:y:y:y:y:y:y:y */ + Ip = "ip" +} + +/** + * Defines values for ColumnDataTypeHintEnum. \ + * {@link KnownColumnDataTypeHintEnum} can be used interchangeably with ColumnDataTypeHintEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri**: A string that matches the pattern of a URI, for example, scheme:\/\/username:password@host:1234\/this\/is\/a\/path?k1=v1&k2=v2#fragment \ + * **guid**: A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \ + * **armPath**: An Azure Resource Model (ARM) path: \/subscriptions\/{...}\/resourceGroups\/{...}\/providers\/Microsoft.{...}\/{...}\/{...}\/{...}... \ + * **ip**: A standard V4\/V6 ip address following the standard shape, x.x.x.x\/y:y:y:y:y:y:y:y + */ +export type ColumnDataTypeHintEnum = string; + +/** Known values of {@link SourceEnum} that the service accepts. */ +export enum KnownSourceEnum { + /** Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other standard data collection means. */ + Microsoft = "microsoft", + /** Tables created by the owner of the Workspace, and only found in this Workspace. */ + Customer = "customer" +} + +/** + * Defines values for SourceEnum. \ + * {@link KnownSourceEnum} can be used interchangeably with SourceEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **microsoft**: Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other standard data collection means. \ + * **customer**: Tables created by the owner of the Workspace, and only found in this Workspace. + */ +export type SourceEnum = string; -/** The top level Log Analytics cluster resource container. */ -export type Cluster = TrackedResource & { - /** The identity of the resource. */ - identity?: Identity; - /** The sku properties. */ - sku?: ClusterSku; - /** - * The ID associated with the cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clusterId?: string; - /** - * The provisioning state of the cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ClusterEntityStatus; - /** Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true' */ - isDoubleEncryptionEnabled?: boolean; - /** 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. */ - isAvailabilityZonesEnabled?: boolean; - /** The cluster's billing type. */ - billingType?: BillingType; - /** The associated key properties. */ - keyVaultProperties?: KeyVaultProperties; - /** - * The last time the cluster was updated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastModifiedDate?: string; - /** - * The cluster creation time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdDate?: string; - /** The list of Log Analytics workspaces associated with the cluster */ - associatedWorkspaces?: AssociatedWorkspace[]; - /** Additional properties for capacity reservation */ - capacityReservationProperties?: CapacityReservationProperties; -}; +/** Known values of {@link TableTypeEnum} that the service accepts. */ +export enum KnownTableTypeEnum { + /** Standard data collected by Azure Monitor. */ + Microsoft = "Microsoft", + /** Custom log table. */ + CustomLog = "CustomLog", + /** Restored data. */ + RestoredLogs = "RestoredLogs", + /** Data collected by a search job. */ + SearchResults = "SearchResults" +} -/** The top level Workspace resource container. */ -export type Workspace = TrackedResource & { - /** The ETag of the workspace. */ - eTag?: string; - /** The provisioning state of the workspace. */ - provisioningState?: WorkspaceEntityStatus; - /** - * This is a read-only property. Represents the ID associated with the workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly customerId?: string; - /** The SKU of the workspace. */ - sku?: WorkspaceSku; - /** The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */ - retentionInDays?: number; - /** The daily volume cap for ingestion. */ - workspaceCapping?: WorkspaceCapping; - /** - * Workspace creation date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdDate?: string; - /** - * Workspace modification date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly modifiedDate?: string; - /** The network access type for accessing Log Analytics ingestion. */ - publicNetworkAccessForIngestion?: PublicNetworkAccessType; - /** The network access type for accessing Log Analytics query. */ - publicNetworkAccessForQuery?: PublicNetworkAccessType; - /** Indicates whether customer managed storage is mandatory for query management. */ - forceCmkForQuery?: boolean; - /** - * List of linked private link scope resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - /** Workspace features. */ - features?: WorkspaceFeatures; -}; +/** + * Defines values for TableTypeEnum. \ + * {@link KnownTableTypeEnum} can be used interchangeably with TableTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Microsoft**: Standard data collected by Azure Monitor. \ + * **CustomLog**: Custom log table. \ + * **RestoredLogs**: Restored data. \ + * **SearchResults**: Data collected by a search job. + */ +export type TableTypeEnum = string; -/** The top level Workspace resource container. */ -export type WorkspacePatch = AzureEntityResource & { - /** Resource tags. Optional. */ - tags?: { [propertyName: string]: string }; - /** The provisioning state of the workspace. */ - provisioningState?: WorkspaceEntityStatus; - /** - * This is a read-only property. Represents the ID associated with the workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly customerId?: string; - /** The SKU of the workspace. */ - sku?: WorkspaceSku; - /** The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details. */ - retentionInDays?: number; - /** The daily volume cap for ingestion. */ - workspaceCapping?: WorkspaceCapping; - /** - * Workspace creation date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdDate?: string; - /** - * Workspace modification date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly modifiedDate?: string; - /** The network access type for accessing Log Analytics ingestion. */ - publicNetworkAccessForIngestion?: PublicNetworkAccessType; - /** The network access type for accessing Log Analytics query. */ - publicNetworkAccessForQuery?: PublicNetworkAccessType; - /** Indicates whether customer managed storage is mandatory for query management. */ - forceCmkForQuery?: boolean; - /** - * List of linked private link scope resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; - /** Workspace features. */ - features?: WorkspaceFeatures; -}; +/** Known values of {@link TableSubTypeEnum} that the service accepts. */ +export enum KnownTableSubTypeEnum { + /** The default subtype with which built-in tables are created. */ + Any = "Any", + /** Indicates a table created through the Data Collector API or with the custom logs feature of the MMA agent, or any table against which Custom Fields were created. */ + Classic = "Classic", + /** A table eligible to have data sent into it via any of the means supported by Data Collection Rules: the Data Collection Endpoint API, ingestion-time transformations, or any other mechanism provided by Data Collection Rules */ + DataCollectionRuleBased = "DataCollectionRuleBased" +} -/** Defines headers for WorkspacePurge_purge operation. */ -export interface WorkspacePurgePurgeHeaders { - /** The location from which to request the operation status. */ - xMsStatusLocation?: string; +/** + * Defines values for TableSubTypeEnum. \ + * {@link KnownTableSubTypeEnum} can be used interchangeably with TableSubTypeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Any**: The default subtype with which built-in tables are created. \ + * **Classic**: Indicates a table created through the Data Collector API or with the custom logs feature of the MMA agent, or any table against which Custom Fields were created. \ + * **DataCollectionRuleBased**: A table eligible to have data sent into it via any of the means supported by Data Collection Rules: the Data Collection Endpoint API, ingestion-time transformations, or any other mechanism provided by Data Collection Rules + */ +export type TableSubTypeEnum = string; + +/** Known values of {@link ProvisioningStateEnum} that the service accepts. */ +export enum KnownProvisioningStateEnum { + /** Table schema is still being built and updated, table is currently locked for any changes till the procedure is done. */ + Updating = "Updating", + /** Table schema is stable and without changes, table data is being updated. */ + InProgress = "InProgress", + /** Table state is stable and without changes, table is unlocked and open for new updates. */ + Succeeded = "Succeeded" } +/** + * Defines values for ProvisioningStateEnum. \ + * {@link KnownProvisioningStateEnum} can be used interchangeably with ProvisioningStateEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Updating**: Table schema is still being built and updated, table is currently locked for any changes till the procedure is done. \ + * **InProgress**: Table schema is stable and without changes, table data is being updated. \ + * **Succeeded**: Table state is stable and without changes, table is unlocked and open for new updates. + */ +export type ProvisioningStateEnum = string; + /** Known values of {@link Type} that the service accepts. */ export enum KnownType { StorageAccount = "StorageAccount", @@ -1091,134 +1539,26 @@ export enum KnownClusterEntityStatus { * **Failed** \ * **Canceled** \ * **Deleting** \ - * **ProvisioningAccount** \ - * **Updating** - */ -export type ClusterEntityStatus = string; - -/** Known values of {@link BillingType} that the service accepts. */ -export enum KnownBillingType { - Cluster = "Cluster", - Workspaces = "Workspaces" -} - -/** - * Defines values for BillingType. \ - * {@link KnownBillingType} can be used interchangeably with BillingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Cluster** \ - * **Workspaces** - */ -export type BillingType = string; - -/** Known values of {@link WorkspaceEntityStatus} that the service accepts. */ -export enum KnownWorkspaceEntityStatus { - Creating = "Creating", - Succeeded = "Succeeded", - Failed = "Failed", - Canceled = "Canceled", - Deleting = "Deleting", - ProvisioningAccount = "ProvisioningAccount", - Updating = "Updating" -} - -/** - * Defines values for WorkspaceEntityStatus. \ - * {@link KnownWorkspaceEntityStatus} can be used interchangeably with WorkspaceEntityStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Deleting** \ - * **ProvisioningAccount** \ - * **Updating** - */ -export type WorkspaceEntityStatus = string; - -/** Known values of {@link WorkspaceSkuNameEnum} that the service accepts. */ -export enum KnownWorkspaceSkuNameEnum { - Free = "Free", - Standard = "Standard", - Premium = "Premium", - PerNode = "PerNode", - PerGB2018 = "PerGB2018", - Standalone = "Standalone", - CapacityReservation = "CapacityReservation", - LACluster = "LACluster" -} - -/** - * Defines values for WorkspaceSkuNameEnum. \ - * {@link KnownWorkspaceSkuNameEnum} can be used interchangeably with WorkspaceSkuNameEnum, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Free** \ - * **Standard** \ - * **Premium** \ - * **PerNode** \ - * **PerGB2018** \ - * **Standalone** \ - * **CapacityReservation** \ - * **LACluster** - */ -export type WorkspaceSkuNameEnum = string; - -/** Known values of {@link DataIngestionStatus} that the service accepts. */ -export enum KnownDataIngestionStatus { - /** Ingestion enabled following daily cap quota reset, or subscription enablement. */ - RespectQuota = "RespectQuota", - /** Ingestion started following service setting change. */ - ForceOn = "ForceOn", - /** Ingestion stopped following service setting change. */ - ForceOff = "ForceOff", - /** Reached daily cap quota, ingestion stopped. */ - OverQuota = "OverQuota", - /** Ingestion stopped following suspended subscription. */ - SubscriptionSuspended = "SubscriptionSuspended", - /** 80% of daily cap quota reached. */ - ApproachingQuota = "ApproachingQuota" -} - -/** - * Defines values for DataIngestionStatus. \ - * {@link KnownDataIngestionStatus} can be used interchangeably with DataIngestionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RespectQuota**: Ingestion enabled following daily cap quota reset, or subscription enablement. \ - * **ForceOn**: Ingestion started following service setting change. \ - * **ForceOff**: Ingestion stopped following service setting change. \ - * **OverQuota**: Reached daily cap quota, ingestion stopped. \ - * **SubscriptionSuspended**: Ingestion stopped following suspended subscription. \ - * **ApproachingQuota**: 80% of daily cap quota reached. - */ -export type DataIngestionStatus = string; - -/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ -export enum KnownPublicNetworkAccessType { - /** Enables connectivity to Log Analytics through public DNS. */ - Enabled = "Enabled", - /** Disables public connectivity to Log Analytics through public DNS. */ - Disabled = "Disabled" + * **ProvisioningAccount** \ + * **Updating** + */ +export type ClusterEntityStatus = string; + +/** Known values of {@link BillingType} that the service accepts. */ +export enum KnownBillingType { + Cluster = "Cluster", + Workspaces = "Workspaces" } /** - * Defines values for PublicNetworkAccessType. \ - * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * Defines values for BillingType. \ + * {@link KnownBillingType} can be used interchangeably with BillingType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled**: Enables connectivity to Log Analytics through public DNS. \ - * **Disabled**: Disables public connectivity to Log Analytics through public DNS. + * **Cluster** \ + * **Workspaces** */ -export type PublicNetworkAccessType = string; -/** Defines values for DataSourceType. */ -export type DataSourceType = "CustomLogs" | "AzureWatson" | "Query" | "Alerts"; -/** Defines values for IdentityType. */ -export type IdentityType = "SystemAssigned" | "UserAssigned" | "None"; -/** Defines values for Capacity. */ -export type Capacity = 500 | 1000 | 2000 | 5000; +export type BillingType = string; /** Defines values for CapacityReservationLevel. */ export type CapacityReservationLevel = | 100 @@ -1229,6 +1569,137 @@ export type CapacityReservationLevel = | 1000 | 2000 | 5000; +/** Defines values for DataSourceType. */ +export type DataSourceType = "CustomLogs" | "AzureWatson" | "Query" | "Alerts"; +/** Defines values for IdentityType. */ +export type IdentityType = "SystemAssigned" | "UserAssigned" | "None"; +/** Defines values for Capacity. */ +export type Capacity = 500 | 1000 | 2000 | 5000; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface OperationsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; + +/** Optional parameters. */ +export interface WorkspacesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspacesListResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface WorkspacesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type WorkspacesCreateOrUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered. */ + force?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface DeletedWorkspacesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DeletedWorkspacesListResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface DeletedWorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult; + +/** Optional parameters. */ +export interface TablesListByWorkspaceOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByWorkspace operation. */ +export type TablesListByWorkspaceResponse = TablesListResult; + +/** Optional parameters. */ +export interface TablesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type TablesCreateOrUpdateResponse = Table; + +/** Optional parameters. */ +export interface TablesUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type TablesUpdateResponse = Table; + +/** Optional parameters. */ +export interface TablesGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type TablesGetResponse = Table; + +/** Optional parameters. */ +export interface TablesDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ export interface DataExportsListByWorkspaceOptionalParams @@ -1494,47 +1965,6 @@ export interface WorkspacePurgeGetPurgeStatusOptionalParams /** Contains response data for the getPurgeStatus operation. */ export type WorkspacePurgeGetPurgeStatusResponse = WorkspacePurgeStatusResponse; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface TablesListByWorkspaceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByWorkspace operation. */ -export type TablesListByWorkspaceResponse = TablesListResult; - -/** Optional parameters. */ -export interface TablesUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type TablesUpdateResponse = Table; - -/** Optional parameters. */ -export interface TablesCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type TablesCreateResponse = Table; - -/** Optional parameters. */ -export interface TablesGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type TablesGetResponse = Table; - /** Optional parameters. */ export interface ClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -1603,71 +2033,6 @@ export interface ClustersListNextOptionalParams /** Contains response data for the listNext operation. */ export type ClustersListNextResponse = ClusterListResult; -/** Optional parameters. */ -export interface WorkspacesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type WorkspacesListResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface WorkspacesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace; - -/** Optional parameters. */ -export interface WorkspacesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered. */ - force?: boolean; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface WorkspacesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; - -/** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type WorkspacesUpdateResponse = Workspace; - -/** Optional parameters. */ -export interface DeletedWorkspacesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DeletedWorkspacesListResponse = WorkspaceListResult; - -/** Optional parameters. */ -export interface DeletedWorkspacesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DeletedWorkspacesListByResourceGroupResponse = WorkspaceListResult; - /** Optional parameters. */ export interface OperationalInsightsManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts index 1520ed6514cd..b6f3a0c5f7eb 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -8,10 +8,10 @@ import * as coreClient from "@azure/core-client"; -export const DataExportListResult: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataExportListResult", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", @@ -20,37 +20,69 @@ export const DataExportListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataExport" + className: "Operation" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "Operation", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -155,10 +187,10 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const DataSourceListResult: coreClient.CompositeMapper = { +export const WorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataSourceListResult", + className: "WorkspaceListResult", modelProperties: { value: { serializedName: "value", @@ -167,40 +199,37 @@ export const DataSourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataSource" + className: "Workspace" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const IntelligencePack: coreClient.CompositeMapper = { +export const WorkspaceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IntelligencePack", + className: "WorkspaceSku", modelProperties: { name: { serializedName: "name", + required: true, type: { name: "String" } }, - enabled: { - serializedName: "enabled", + capacityReservationLevel: { + serializedName: "capacityReservationLevel", type: { - name: "Boolean" + name: "Enum", + allowedValues: [100, 200, 300, 400, 500, 1000, 2000, 5000] } }, - displayName: { - serializedName: "displayName", + lastSkuUpdate: { + serializedName: "lastSkuUpdate", + readOnly: true, type: { name: "String" } @@ -209,185 +238,168 @@ export const IntelligencePack: coreClient.CompositeMapper = { } }; -export const LinkedServiceListResult: coreClient.CompositeMapper = { +export const WorkspaceCapping: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinkedServiceListResult", + className: "WorkspaceCapping", modelProperties: { - value: { - serializedName: "value", + dailyQuotaGb: { + serializedName: "dailyQuotaGb", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LinkedService" - } - } + name: "Number" } - } - } - } -}; - -export const LinkedStorageAccountsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedStorageAccountsListResult", - modelProperties: { - value: { - serializedName: "value", + }, + quotaNextResetTime: { + serializedName: "quotaNextResetTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LinkedStorageAccountsResource" - } - } + name: "String" + } + }, + dataIngestionStatus: { + serializedName: "dataIngestionStatus", + readOnly: true, + type: { + name: "String" } } } } }; -export const WorkspaceListManagementGroupsResult: coreClient.CompositeMapper = { +export const PrivateLinkScopedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListManagementGroupsResult", + className: "PrivateLinkScopedResource", modelProperties: { - value: { - serializedName: "value", + resourceId: { + serializedName: "resourceId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagementGroup" - } - } + name: "String" + } + }, + scopeId: { + serializedName: "scopeId", + type: { + name: "String" } } } } }; -export const ManagementGroup: coreClient.CompositeMapper = { +export const WorkspaceFeatures: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagementGroup", + className: "WorkspaceFeatures", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - serverCount: { - serializedName: "properties.serverCount", - type: { - name: "Number" - } - }, - isGateway: { - serializedName: "properties.isGateway", + enableDataExport: { + serializedName: "enableDataExport", + nullable: true, type: { name: "Boolean" } }, - name: { - serializedName: "properties.name", - type: { - name: "String" - } - }, - id: { - serializedName: "properties.id", - type: { - name: "String" - } - }, - created: { - serializedName: "properties.created", + immediatePurgeDataOn30Days: { + serializedName: "immediatePurgeDataOn30Days", + nullable: true, type: { - name: "DateTime" + name: "Boolean" } }, - dataReceived: { - serializedName: "properties.dataReceived", + enableLogAccessUsingOnlyResourcePermissions: { + serializedName: "enableLogAccessUsingOnlyResourcePermissions", + nullable: true, type: { - name: "DateTime" + name: "Boolean" } }, - version: { - serializedName: "properties.version", + clusterResourceId: { + serializedName: "clusterResourceId", + nullable: true, type: { name: "String" } }, - sku: { - serializedName: "properties.sku", + disableLocalAuth: { + serializedName: "disableLocalAuth", + nullable: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const OperationStatus: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatus", + className: "SystemData", modelProperties: { - id: { - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - name: { - serializedName: "name", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - endTime: { - serializedName: "endTime", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - status: { - serializedName: "status", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } }, - error: { - serializedName: "error", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Composite", - className: "ErrorResponse" + name: "DateTime" } } } } }; -export const SharedKeys: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedKeys", + className: "Resource", modelProperties: { - primarySharedKey: { - serializedName: "primarySharedKey", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - secondarySharedKey: { - serializedName: "secondarySharedKey", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } @@ -396,10 +408,10 @@ export const SharedKeys: coreClient.CompositeMapper = { } }; -export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { +export const TablesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListUsagesResult", + className: "TablesListResult", modelProperties: { value: { serializedName: "value", @@ -408,7 +420,7 @@ export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UsageMetric" + className: "Table" } } } @@ -417,44 +429,44 @@ export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { } }; -export const UsageMetric: coreClient.CompositeMapper = { +export const SearchResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageMetric", + className: "SearchResults", modelProperties: { - name: { - serializedName: "name", + query: { + serializedName: "query", type: { - name: "Composite", - className: "MetricName" + name: "String" } }, - unit: { - serializedName: "unit", + description: { + serializedName: "description", type: { name: "String" } }, - currentValue: { - serializedName: "currentValue", + limit: { + serializedName: "limit", type: { name: "Number" } }, - limit: { - serializedName: "limit", + startSearchTime: { + serializedName: "startSearchTime", type: { - name: "Number" + name: "DateTime" } }, - nextResetTime: { - serializedName: "nextResetTime", + endSearchTime: { + serializedName: "endSearchTime", type: { name: "DateTime" } }, - quotaPeriod: { - serializedName: "quotaPeriod", + sourceTable: { + serializedName: "sourceTable", + readOnly: true, type: { name: "String" } @@ -463,19 +475,26 @@ export const UsageMetric: coreClient.CompositeMapper = { } }; -export const MetricName: coreClient.CompositeMapper = { +export const RestoredLogs: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricName", + className: "RestoredLogs", modelProperties: { - value: { - serializedName: "value", + startRestoreTime: { + serializedName: "startRestoreTime", type: { - name: "String" + name: "DateTime" } }, - localizedValue: { - serializedName: "localizedValue", + endRestoreTime: { + serializedName: "endRestoreTime", + type: { + name: "DateTime" + } + }, + sourceTable: { + serializedName: "sourceTable", + readOnly: true, type: { name: "String" } @@ -484,37 +503,45 @@ export const MetricName: coreClient.CompositeMapper = { } }; -export const StorageAccount: coreClient.CompositeMapper = { +export const ResultStatistics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageAccount", + className: "ResultStatistics", modelProperties: { - id: { - serializedName: "id", - required: true, + progress: { + constraints: { + MultipleOf: 0.01 + }, + serializedName: "progress", + readOnly: true, type: { - name: "String" + name: "Number" } }, - key: { - serializedName: "key", - required: true, + ingestedRecords: { + serializedName: "ingestedRecords", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const StorageInsightStatus: coreClient.CompositeMapper = { +export const Schema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageInsightStatus", + className: "Schema", modelProperties: { - state: { - serializedName: "state", - required: true, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", type: { name: "String" } @@ -524,152 +551,165 @@ export const StorageInsightStatus: coreClient.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const StorageInsightListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageInsightListResult", - modelProperties: { - value: { - serializedName: "value", + }, + columns: { + serializedName: "columns", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StorageInsight" + className: "Column" } } } }, - odataNextLink: { - serializedName: "@odata\\.nextLink", + standardColumns: { + serializedName: "standardColumns", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Column" + } + } + } + }, + categories: { + serializedName: "categories", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + labels: { + serializedName: "labels", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + source: { + serializedName: "source", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const Tag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Tag", - modelProperties: { - name: { - serializedName: "name", - required: true, + }, + tableType: { + serializedName: "tableType", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", - required: true, + tableSubType: { + serializedName: "tableSubType", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const SavedSearchesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SavedSearchesListResult", - modelProperties: { - value: { - serializedName: "value", + }, + solutions: { + serializedName: "solutions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SavedSearch" + name: "String" } } } + }, + searchResults: { + serializedName: "searchResults", + type: { + name: "Composite", + className: "SearchResults" + } + }, + restoredLogs: { + serializedName: "restoredLogs", + type: { + name: "Composite", + className: "RestoredLogs" + } } } } }; -export const AvailableServiceTier: coreClient.CompositeMapper = { +export const Column: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AvailableServiceTier", + className: "Column", modelProperties: { - serviceTier: { - serializedName: "serviceTier", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - enabled: { - serializedName: "enabled", - readOnly: true, + type: { + serializedName: "type", type: { - name: "Boolean" + name: "String" } }, - minimumRetention: { - serializedName: "minimumRetention", - readOnly: true, + dataTypeHint: { + serializedName: "dataTypeHint", type: { - name: "Number" + name: "String" } }, - maximumRetention: { - serializedName: "maximumRetention", - readOnly: true, + displayName: { + serializedName: "displayName", type: { - name: "Number" + name: "String" } }, - defaultRetention: { - serializedName: "defaultRetention", - readOnly: true, + description: { + serializedName: "description", type: { - name: "Number" + name: "String" } }, - capacityReservationLevel: { - serializedName: "capacityReservationLevel", + isDefaultDisplay: { + serializedName: "isDefaultDisplay", readOnly: true, type: { - name: "Number" + name: "Boolean" } }, - lastSkuUpdate: { - serializedName: "lastSkuUpdate", + isHidden: { + serializedName: "isHidden", readOnly: true, type: { - name: "String" + name: "Boolean" } } } } }; -export const SearchGetSchemaResponse: coreClient.CompositeMapper = { +export const DataExportListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchGetSchemaResponse", + className: "DataExportListResult", modelProperties: { - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "SearchMetadata" - } - }, value: { serializedName: "value", type: { @@ -677,7 +717,7 @@ export const SearchGetSchemaResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchSchemaValue" + className: "DataExport" } } } @@ -686,165 +726,239 @@ export const SearchGetSchemaResponse: coreClient.CompositeMapper = { } }; -export const SearchMetadata: coreClient.CompositeMapper = { +export const DataSourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchMetadata", + className: "DataSourceListResult", modelProperties: { - searchId: { - serializedName: "requestId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataSource" + } + } } }, - resultType: { - serializedName: "resultType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - total: { - serializedName: "total", + } + } + } +}; + +export const IntelligencePack: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntelligencePack", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } }, - top: { - serializedName: "top", + enabled: { + serializedName: "enabled", type: { - name: "Number" + name: "Boolean" } }, - id: { - serializedName: "id", + displayName: { + serializedName: "displayName", type: { name: "String" } - }, - coreSummaries: { - serializedName: "coreSummaries", + } + } + } +}; + +export const LinkedServiceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedServiceListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CoreSummary" + className: "LinkedService" } } } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - lastUpdated: { - serializedName: "lastUpdated", - type: { - name: "DateTime" - } - }, - eTag: { - serializedName: "eTag", + } + } + } +}; + +export const LinkedStorageAccountsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedStorageAccountsListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LinkedStorageAccountsResource" + } + } } - }, - sort: { - serializedName: "sort", + } + } + } +}; + +export const WorkspaceListManagementGroupsResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceListManagementGroupsResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SearchSort" + className: "ManagementGroup" } } } - }, - requestTime: { - serializedName: "requestTime", + } + } + } +}; + +export const ManagementGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagementGroup", + modelProperties: { + serverCount: { + serializedName: "properties.serverCount", type: { name: "Number" } }, - aggregatedValueField: { - serializedName: "aggregatedValueField", + isGateway: { + serializedName: "properties.isGateway", + type: { + name: "Boolean" + } + }, + name: { + serializedName: "properties.name", type: { name: "String" } }, - aggregatedGroupingFields: { - serializedName: "aggregatedGroupingFields", + id: { + serializedName: "properties.id", type: { name: "String" } }, - sum: { - serializedName: "sum", + created: { + serializedName: "properties.created", type: { - name: "Number" + name: "DateTime" } }, - max: { - serializedName: "max", + dataReceived: { + serializedName: "properties.dataReceived", type: { - name: "Number" + name: "DateTime" } }, - schema: { - serializedName: "schema", + version: { + serializedName: "properties.version", type: { - name: "Composite", - className: "SearchMetadataSchema" + name: "String" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "String" } } } } }; -export const CoreSummary: coreClient.CompositeMapper = { +export const OperationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CoreSummary", + className: "OperationStatus", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "String" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "String" + } + }, status: { serializedName: "status", type: { name: "String" } }, - numberOfDocuments: { - serializedName: "numberOfDocuments", - required: true, + error: { + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ErrorResponse" } } } } }; -export const SearchSort: coreClient.CompositeMapper = { +export const SharedKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchSort", + className: "SharedKeys", modelProperties: { - name: { - serializedName: "name", + primarySharedKey: { + serializedName: "primarySharedKey", type: { name: "String" } }, - order: { - serializedName: "order", + secondarySharedKey: { + serializedName: "secondarySharedKey", type: { name: "String" } @@ -853,140 +967,109 @@ export const SearchSort: coreClient.CompositeMapper = { } }; -export const SearchMetadataSchema: coreClient.CompositeMapper = { +export const WorkspaceListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchMetadataSchema", + className: "WorkspaceListUsagesResult", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - version: { - serializedName: "version", + value: { + serializedName: "value", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UsageMetric" + } + } } } } } }; -export const SearchSchemaValue: coreClient.CompositeMapper = { +export const UsageMetric: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchSchemaValue", + className: "UsageMetric", modelProperties: { name: { serializedName: "name", type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" + name: "Composite", + className: "MetricName" } }, - type: { - serializedName: "type", + unit: { + serializedName: "unit", type: { name: "String" } }, - indexed: { - serializedName: "indexed", - required: true, + currentValue: { + serializedName: "currentValue", type: { - name: "Boolean" + name: "Number" } }, - stored: { - serializedName: "stored", - required: true, + limit: { + serializedName: "limit", type: { - name: "Boolean" + name: "Number" } }, - facet: { - serializedName: "facet", - required: true, + nextResetTime: { + serializedName: "nextResetTime", type: { - name: "Boolean" + name: "DateTime" } }, - ownerType: { - serializedName: "ownerType", + quotaPeriod: { + serializedName: "quotaPeriod", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkspacePurgeBody: coreClient.CompositeMapper = { +export const MetricName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePurgeBody", + className: "MetricName", modelProperties: { - table: { - serializedName: "table", - required: true, + value: { + serializedName: "value", type: { name: "String" } }, - filters: { - serializedName: "filters", - required: true, + localizedValue: { + serializedName: "localizedValue", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspacePurgeBodyFilters" - } - } + name: "String" } } } } }; -export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = { +export const StorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePurgeBodyFilters", + className: "StorageAccount", modelProperties: { - column: { - serializedName: "column", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", + id: { + serializedName: "id", + required: true, type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "any" - } - }, key: { serializedName: "key", + required: true, type: { name: "String" } @@ -995,30 +1078,20 @@ export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = { } }; -export const WorkspacePurgeResponse: coreClient.CompositeMapper = { +export const StorageInsightStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePurgeResponse", + className: "StorageInsightStatus", modelProperties: { - operationId: { - serializedName: "operationId", + state: { + serializedName: "state", required: true, type: { name: "String" } - } - } - } -}; - -export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WorkspacePurgeStatusResponse", - modelProperties: { - status: { - serializedName: "status", - required: true, + }, + description: { + serializedName: "description", type: { name: "String" } @@ -1027,10 +1100,10 @@ export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const StorageInsightListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "StorageInsightListResult", modelProperties: { value: { serializedName: "value", @@ -1039,14 +1112,13 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "StorageInsight" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + odataNextLink: { + serializedName: "@odata\\.nextLink", type: { name: "String" } @@ -1055,53 +1127,21 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const Tag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "Tag", modelProperties: { name: { serializedName: "name", + required: true, type: { name: "String" } }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + value: { + serializedName: "value", + required: true, type: { name: "String" } @@ -1110,10 +1150,10 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const TablesListResult: coreClient.CompositeMapper = { +export const SavedSearchesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TablesListResult", + className: "SavedSearchesListResult", modelProperties: { value: { serializedName: "value", @@ -1122,7 +1162,7 @@ export const TablesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Table" + className: "SavedSearch" } } } @@ -1131,87 +1171,55 @@ export const TablesListResult: coreClient.CompositeMapper = { } }; -export const ClusterListResult: coreClient.CompositeMapper = { +export const AvailableServiceTier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterListResult", + className: "AvailableServiceTier", modelProperties: { - nextLink: { - serializedName: "nextLink", + serviceTier: { + serializedName: "serviceTier", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Cluster" - } - } - } - } - } - } -}; - -export const Identity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - serializedName: "principalId", + enabled: { + serializedName: "enabled", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - tenantId: { - serializedName: "tenantId", + minimumRetention: { + serializedName: "minimumRetention", readOnly: true, type: { - name: "String" + name: "Number" } }, - type: { - serializedName: "type", - required: true, + maximumRetention: { + serializedName: "maximumRetention", + readOnly: true, type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] + name: "Number" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + defaultRetention: { + serializedName: "defaultRetention", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } + name: "Number" } - } - } - } -}; - -export const UserIdentityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserIdentityProperties", - modelProperties: { - principalId: { - serializedName: "principalId", + }, + capacityReservationLevel: { + serializedName: "capacityReservationLevel", readOnly: true, type: { - name: "String" + name: "Number" } }, - clientId: { - serializedName: "clientId", + lastSkuUpdate: { + serializedName: "lastSkuUpdate", readOnly: true, type: { name: "String" @@ -1221,90 +1229,193 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { } }; -export const ClusterSku: coreClient.CompositeMapper = { +export const SearchGetSchemaResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterSku", + className: "SearchGetSchemaResponse", modelProperties: { - capacity: { - serializedName: "capacity", + metadata: { + serializedName: "metadata", type: { - name: "Enum", - allowedValues: [500, 1000, 2000, 5000] + name: "Composite", + className: "SearchMetadata" } }, - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchSchemaValue" + } + } } } } } }; -export const KeyVaultProperties: coreClient.CompositeMapper = { +export const SearchMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KeyVaultProperties", + className: "SearchMetadata", modelProperties: { - keyVaultUri: { - serializedName: "keyVaultUri", + searchId: { + serializedName: "requestId", type: { name: "String" } }, - keyName: { - serializedName: "keyName", + resultType: { + serializedName: "resultType", type: { name: "String" } }, - keyVersion: { - serializedName: "keyVersion", + total: { + serializedName: "total", type: { - name: "String" + name: "Number" } }, - keyRsaSize: { - serializedName: "keyRsaSize", + top: { + serializedName: "top", type: { name: "Number" } - } - } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + coreSummaries: { + serializedName: "coreSummaries", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CoreSummary" + } + } + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + lastUpdated: { + serializedName: "lastUpdated", + type: { + name: "DateTime" + } + }, + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, + sort: { + serializedName: "sort", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchSort" + } + } + } + }, + requestTime: { + serializedName: "requestTime", + type: { + name: "Number" + } + }, + aggregatedValueField: { + serializedName: "aggregatedValueField", + type: { + name: "String" + } + }, + aggregatedGroupingFields: { + serializedName: "aggregatedGroupingFields", + type: { + name: "String" + } + }, + sum: { + serializedName: "sum", + type: { + name: "Number" + } + }, + max: { + serializedName: "max", + type: { + name: "Number" + } + }, + schema: { + serializedName: "schema", + type: { + name: "Composite", + className: "SearchMetadataSchema" + } + } + } } }; -export const AssociatedWorkspace: coreClient.CompositeMapper = { +export const CoreSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssociatedWorkspace", + className: "CoreSummary", modelProperties: { - workspaceId: { - serializedName: "workspaceId", - readOnly: true, + status: { + serializedName: "status", type: { name: "String" } }, - workspaceName: { - serializedName: "workspaceName", - readOnly: true, + numberOfDocuments: { + serializedName: "numberOfDocuments", + required: true, type: { - name: "String" + name: "Number" } - }, - resourceId: { - serializedName: "resourceId", - readOnly: true, + } + } + } +}; + +export const SearchSort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SearchSort", + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - associateDate: { - serializedName: "associateDate", - readOnly: true, + order: { + serializedName: "order", type: { name: "String" } @@ -1313,21 +1424,19 @@ export const AssociatedWorkspace: coreClient.CompositeMapper = { } }; -export const CapacityReservationProperties: coreClient.CompositeMapper = { +export const SearchMetadataSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CapacityReservationProperties", + className: "SearchMetadataSchema", modelProperties: { - lastSkuUpdate: { - serializedName: "lastSkuUpdate", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - minCapacity: { - serializedName: "minCapacity", - readOnly: true, + version: { + serializedName: "version", type: { name: "Number" } @@ -1336,54 +1445,170 @@ export const CapacityReservationProperties: coreClient.CompositeMapper = { } }; -export const ClusterPatch: coreClient.CompositeMapper = { +export const SearchSchemaValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterPatch", + className: "SearchSchemaValue", modelProperties: { - identity: { - serializedName: "identity", + name: { + serializedName: "name", type: { - name: "Composite", - className: "Identity" + name: "String" } }, - sku: { - serializedName: "sku", + displayName: { + serializedName: "displayName", type: { - name: "Composite", - className: "ClusterSku" + name: "String" } }, - tags: { - serializedName: "tags", + type: { + serializedName: "type", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - keyVaultProperties: { - serializedName: "properties.keyVaultProperties", + indexed: { + serializedName: "indexed", + required: true, type: { - name: "Composite", - className: "KeyVaultProperties" + name: "Boolean" } }, - billingType: { - serializedName: "properties.billingType", + stored: { + serializedName: "stored", + required: true, + type: { + name: "Boolean" + } + }, + facet: { + serializedName: "facet", + required: true, + type: { + name: "Boolean" + } + }, + ownerType: { + serializedName: "ownerType", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkspacePurgeBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePurgeBody", + modelProperties: { + table: { + serializedName: "table", + required: true, type: { name: "String" } + }, + filters: { + serializedName: "filters", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspacePurgeBodyFilters" + } + } + } } } } }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const WorkspacePurgeBodyFilters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "WorkspacePurgeBodyFilters", modelProperties: { + column: { + serializedName: "column", + type: { + name: "String" + } + }, + operator: { + serializedName: "operator", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "any" + } + }, + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspacePurgeResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePurgeResponse", + modelProperties: { + operationId: { + serializedName: "operationId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const WorkspacePurgeStatusResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspacePurgeStatusResponse", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ClusterListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClusterListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1391,7 +1616,7 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Workspace" + className: "Cluster" } } } @@ -1400,27 +1625,60 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { } }; -export const WorkspaceSku: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceSku", + className: "Identity", modelProperties: { - name: { - serializedName: "name", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { name: "String" } }, - capacityReservationLevel: { - serializedName: "capacityReservationLevel", + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + required: true, type: { name: "Enum", - allowedValues: [100, 200, 300, 400, 500, 1000, 2000, 5000] + allowedValues: ["SystemAssigned", "UserAssigned", "None"] } }, - lastSkuUpdate: { - serializedName: "lastSkuUpdate", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserIdentityProperties" } + } + } + } + } + } +}; + +export const UserIdentityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserIdentityProperties", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String" @@ -1430,26 +1688,89 @@ export const WorkspaceSku: coreClient.CompositeMapper = { } }; -export const WorkspaceCapping: coreClient.CompositeMapper = { +export const ClusterSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceCapping", + className: "ClusterSku", modelProperties: { - dailyQuotaGb: { - serializedName: "dailyQuotaGb", + capacity: { + serializedName: "capacity", + type: { + name: "Enum", + allowedValues: [500, 1000, 2000, 5000] + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KeyVaultProperties", + modelProperties: { + keyVaultUri: { + serializedName: "keyVaultUri", + type: { + name: "String" + } + }, + keyName: { + serializedName: "keyName", + type: { + name: "String" + } + }, + keyVersion: { + serializedName: "keyVersion", + type: { + name: "String" + } + }, + keyRsaSize: { + serializedName: "keyRsaSize", + type: { + name: "Number" + } + } + } + } +}; + +export const AssociatedWorkspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssociatedWorkspace", + modelProperties: { + workspaceId: { + serializedName: "workspaceId", + readOnly: true, type: { - name: "Number" + name: "String" } }, - quotaNextResetTime: { - serializedName: "quotaNextResetTime", + workspaceName: { + serializedName: "workspaceName", readOnly: true, type: { name: "String" } }, - dataIngestionStatus: { - serializedName: "dataIngestionStatus", + resourceId: { + serializedName: "resourceId", + readOnly: true, + type: { + name: "String" + } + }, + associateDate: { + serializedName: "associateDate", readOnly: true, type: { name: "String" @@ -1459,66 +1780,66 @@ export const WorkspaceCapping: coreClient.CompositeMapper = { } }; -export const PrivateLinkScopedResource: coreClient.CompositeMapper = { +export const CapacityReservationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkScopedResource", + className: "CapacityReservationProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", + lastSkuUpdate: { + serializedName: "lastSkuUpdate", + readOnly: true, type: { name: "String" } }, - scopeId: { - serializedName: "scopeId", + minCapacity: { + serializedName: "minCapacity", + readOnly: true, type: { - name: "String" + name: "Number" } } } } }; -export const WorkspaceFeatures: coreClient.CompositeMapper = { +export const ClusterPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceFeatures", - additionalProperties: { type: { name: "Object" } }, + className: "ClusterPatch", modelProperties: { - enableDataExport: { - serializedName: "enableDataExport", - nullable: true, + identity: { + serializedName: "identity", type: { - name: "Boolean" + name: "Composite", + className: "Identity" } }, - immediatePurgeDataOn30Days: { - serializedName: "immediatePurgeDataOn30Days", - nullable: true, + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "ClusterSku" } }, - enableLogAccessUsingOnlyResourcePermissions: { - serializedName: "enableLogAccessUsingOnlyResourcePermissions", - nullable: true, + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "String" } } } }, - clusterResourceId: { - serializedName: "clusterResourceId", - nullable: true, + keyVaultProperties: { + serializedName: "properties.keyVaultProperties", type: { - name: "String" + name: "Composite", + className: "KeyVaultProperties" } }, - disableLocalAuth: { - serializedName: "disableLocalAuth", - nullable: true, + billingType: { + serializedName: "properties.billingType", type: { - name: "Boolean" + name: "String" } } } @@ -1540,16 +1861,6 @@ export const DataSourceFilter: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1591,62 +1902,125 @@ export const AzureEntityResource: coreClient.CompositeMapper = { } }; -export const DataExport: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataExport", + className: "ProxyResource", modelProperties: { - ...ProxyResource.type.modelProperties, - dataExportId: { - serializedName: "properties.dataExportId", + ...Resource.type.modelProperties + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...TrackedResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + eTag: { + serializedName: "eTag", type: { name: "String" } }, - tableNames: { - serializedName: "properties.tableNames", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - enable: { - serializedName: "properties.enable", + customerId: { + serializedName: "properties.customerId", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "Composite", + className: "WorkspaceSku" + } + }, + retentionInDays: { + serializedName: "properties.retentionInDays", + nullable: true, + type: { + name: "Number" + } + }, + workspaceCapping: { + serializedName: "properties.workspaceCapping", + type: { + name: "Composite", + className: "WorkspaceCapping" } }, createdDate: { serializedName: "properties.createdDate", + readOnly: true, type: { name: "String" } }, - lastModifiedDate: { - serializedName: "properties.lastModifiedDate", + modifiedDate: { + serializedName: "properties.modifiedDate", + readOnly: true, type: { name: "String" } }, - resourceId: { - serializedName: "properties.destination.resourceId", + publicNetworkAccessForIngestion: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForIngestion", type: { name: "String" } }, - typePropertiesDestinationType: { - serializedName: "properties.destination.type", - readOnly: true, + publicNetworkAccessForQuery: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForQuery", type: { name: "String" } }, - eventHubName: { - serializedName: "properties.destination.metaData.eventHubName", + forceCmkForQuery: { + serializedName: "properties.forceCmkForQuery", + type: { + name: "Boolean" + } + }, + privateLinkScopedResources: { + serializedName: "properties.privateLinkScopedResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkScopedResource" + } + } + } + }, + features: { + serializedName: "properties.features", + type: { + name: "Composite", + className: "WorkspaceFeatures" + } + }, + defaultDataCollectionRuleResourceId: { + serializedName: "properties.defaultDataCollectionRuleResourceId", type: { name: "String" } @@ -1655,120 +2029,108 @@ export const DataExport: coreClient.CompositeMapper = { } }; -export const DataSource: coreClient.CompositeMapper = { +export const Cluster: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataSource", + className: "Cluster", modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - required: true, + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "Identity" } }, - etag: { - serializedName: "etag", + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ClusterSku" + } + }, + clusterId: { + serializedName: "properties.clusterId", + readOnly: true, type: { name: "String" } }, - kind: { - serializedName: "kind", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, - tags: { - serializedName: "tags", + isDoubleEncryptionEnabled: { + serializedName: "properties.isDoubleEncryptionEnabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } - } - } - } -}; - -export const LinkedService: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedService", - modelProperties: { - ...ProxyResource.type.modelProperties, - tags: { - serializedName: "tags", + }, + isAvailabilityZonesEnabled: { + serializedName: "properties.isAvailabilityZonesEnabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - resourceId: { - serializedName: "properties.resourceId", + billingType: { + serializedName: "properties.billingType", type: { name: "String" } }, - writeAccessResourceId: { - serializedName: "properties.writeAccessResourceId", + keyVaultProperties: { + serializedName: "properties.keyVaultProperties", type: { - name: "String" + name: "Composite", + className: "KeyVaultProperties" } }, - provisioningState: { - serializedName: "properties.provisioningState", + lastModifiedDate: { + serializedName: "properties.lastModifiedDate", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LinkedStorageAccountsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkedStorageAccountsResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - dataSourceType: { - serializedName: "properties.dataSourceType", + }, + createdDate: { + serializedName: "properties.createdDate", readOnly: true, type: { - name: "Enum", - allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"] + name: "String" } }, - storageAccountIds: { - serializedName: "properties.storageAccountIds", + associatedWorkspaces: { + serializedName: "properties.associatedWorkspaces", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AssociatedWorkspace" } } } + }, + capacityReservationProperties: { + serializedName: "properties.capacityReservationProperties", + type: { + name: "Composite", + className: "CapacityReservationProperties" + } } } } }; -export const StorageInsight: coreClient.CompositeMapper = { +export const WorkspacePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StorageInsight", + className: "WorkspacePatch", modelProperties: { - ...ProxyResource.type.modelProperties, - eTag: { - serializedName: "eTag", - type: { - name: "String" - } - }, + ...AzureEntityResource.type.modelProperties, tags: { serializedName: "tags", type: { @@ -1776,108 +2138,99 @@ export const StorageInsight: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - containers: { - serializedName: "properties.containers", + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tables: { - serializedName: "properties.tables", + customerId: { + serializedName: "properties.customerId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + sku: { + serializedName: "properties.sku", type: { name: "Composite", - className: "StorageAccount" + className: "WorkspaceSku" } }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "StorageInsightStatus" - } - } - } - } -}; - -export const SavedSearch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SavedSearch", - modelProperties: { - ...ProxyResource.type.modelProperties, - etag: { - serializedName: "etag", + retentionInDays: { + serializedName: "properties.retentionInDays", + nullable: true, type: { - name: "String" + name: "Number" } }, - category: { - serializedName: "properties.category", - required: true, + workspaceCapping: { + serializedName: "properties.workspaceCapping", type: { - name: "String" + name: "Composite", + className: "WorkspaceCapping" } }, - displayName: { - serializedName: "properties.displayName", - required: true, + createdDate: { + serializedName: "properties.createdDate", + readOnly: true, type: { name: "String" } }, - query: { - serializedName: "properties.query", - required: true, + modifiedDate: { + serializedName: "properties.modifiedDate", + readOnly: true, type: { name: "String" } }, - functionAlias: { - serializedName: "properties.functionAlias", + publicNetworkAccessForIngestion: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForIngestion", type: { name: "String" } }, - functionParameters: { - serializedName: "properties.functionParameters", + publicNetworkAccessForQuery: { + defaultValue: "Enabled", + serializedName: "properties.publicNetworkAccessForQuery", type: { name: "String" } }, - version: { - serializedName: "properties.version", + forceCmkForQuery: { + serializedName: "properties.forceCmkForQuery", type: { - name: "Number" + name: "Boolean" } }, - tags: { - serializedName: "properties.tags", + privateLinkScopedResources: { + serializedName: "properties.privateLinkScopedResources", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Tag" + className: "PrivateLinkScopedResource" } } } + }, + features: { + serializedName: "properties.features", + type: { + name: "Composite", + className: "WorkspaceFeatures" + } + }, + defaultDataCollectionRuleResourceId: { + serializedName: "properties.defaultDataCollectionRuleResourceId", + type: { + name: "String" + } } } } @@ -1889,246 +2242,270 @@ export const Table: coreClient.CompositeMapper = { className: "Table", modelProperties: { ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, retentionInDays: { constraints: { InclusiveMaximum: 730, - InclusiveMinimum: 7 + InclusiveMinimum: 4 }, serializedName: "properties.retentionInDays", type: { name: "Number" } }, - isTroubleshootingAllowed: { - serializedName: "properties.isTroubleshootingAllowed", - readOnly: true, + totalRetentionInDays: { + constraints: { + InclusiveMaximum: 2555, + InclusiveMinimum: 4 + }, + serializedName: "properties.totalRetentionInDays", type: { - name: "Boolean" + name: "Number" } }, - isTroubleshootEnabled: { - serializedName: "properties.isTroubleshootEnabled", + archiveRetentionInDays: { + serializedName: "properties.archiveRetentionInDays", + readOnly: true, type: { - name: "Boolean" + name: "Number" } }, - lastTroubleshootDate: { - serializedName: "properties.lastTroubleshootDate", - readOnly: true, + searchResults: { + serializedName: "properties.searchResults", type: { - name: "String" + name: "Composite", + className: "SearchResults" } - } - } - } -}; - -export const Cluster: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Cluster", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + restoredLogs: { + serializedName: "properties.restoredLogs", type: { name: "Composite", - className: "Identity" + className: "RestoredLogs" } }, - sku: { - serializedName: "sku", + resultStatistics: { + serializedName: "properties.resultStatistics", type: { name: "Composite", - className: "ClusterSku" + className: "ResultStatistics" } }, - clusterId: { - serializedName: "properties.clusterId", + plan: { + serializedName: "properties.plan", + type: { + name: "String" + } + }, + lastPlanModifiedDate: { + serializedName: "properties.lastPlanModifiedDate", readOnly: true, type: { name: "String" } }, + schema: { + serializedName: "properties.schema", + type: { + name: "Composite", + className: "Schema" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } - }, - isDoubleEncryptionEnabled: { - serializedName: "properties.isDoubleEncryptionEnabled", + } + } + } +}; + +export const DataExport: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataExport", + modelProperties: { + ...ProxyResource.type.modelProperties, + dataExportId: { + serializedName: "properties.dataExportId", type: { - name: "Boolean" + name: "String" } }, - isAvailabilityZonesEnabled: { - serializedName: "properties.isAvailabilityZonesEnabled", + tableNames: { + serializedName: "properties.tableNames", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - billingType: { - serializedName: "properties.billingType", + enable: { + serializedName: "properties.enable", type: { - name: "String" + name: "Boolean" } }, - keyVaultProperties: { - serializedName: "properties.keyVaultProperties", + createdDate: { + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "KeyVaultProperties" + name: "String" } }, lastModifiedDate: { serializedName: "properties.lastModifiedDate", - readOnly: true, type: { name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, + resourceId: { + serializedName: "properties.destination.resourceId", type: { name: "String" } }, - associatedWorkspaces: { - serializedName: "properties.associatedWorkspaces", + typePropertiesDestinationType: { + serializedName: "properties.destination.type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AssociatedWorkspace" - } - } + name: "String" } }, - capacityReservationProperties: { - serializedName: "properties.capacityReservationProperties", + eventHubName: { + serializedName: "properties.destination.metaData.eventHubName", type: { - name: "Composite", - className: "CapacityReservationProperties" + name: "String" } } } } }; -export const Workspace: coreClient.CompositeMapper = { +export const DataSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "DataSource", modelProperties: { - ...TrackedResource.type.modelProperties, - eTag: { - serializedName: "eTag", + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + required: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + etag: { + serializedName: "etag", type: { name: "String" } }, - customerId: { - serializedName: "properties.customerId", - readOnly: true, + kind: { + serializedName: "kind", + required: true, type: { name: "String" } }, - sku: { - serializedName: "properties.sku", - type: { - name: "Composite", - className: "WorkspaceSku" - } - }, - retentionInDays: { - serializedName: "properties.retentionInDays", - nullable: true, - type: { - name: "Number" - } - }, - workspaceCapping: { - serializedName: "properties.workspaceCapping", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "WorkspaceCapping" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, + } + } + } +}; + +export const LinkedService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedService", + modelProperties: { + ...ProxyResource.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - modifiedDate: { - serializedName: "properties.modifiedDate", - readOnly: true, + resourceId: { + serializedName: "properties.resourceId", type: { name: "String" } }, - publicNetworkAccessForIngestion: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForIngestion", + writeAccessResourceId: { + serializedName: "properties.writeAccessResourceId", type: { name: "String" } }, - publicNetworkAccessForQuery: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForQuery", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } - }, - forceCmkForQuery: { - serializedName: "properties.forceCmkForQuery", + } + } + } +}; + +export const LinkedStorageAccountsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LinkedStorageAccountsResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + dataSourceType: { + serializedName: "properties.dataSourceType", + readOnly: true, type: { - name: "Boolean" + name: "Enum", + allowedValues: ["CustomLogs", "AzureWatson", "Query", "Alerts"] } }, - privateLinkScopedResources: { - serializedName: "properties.privateLinkScopedResources", - readOnly: true, + storageAccountIds: { + serializedName: "properties.storageAccountIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateLinkScopedResource" + name: "String" } } } - }, - features: { - serializedName: "properties.features", - type: { - name: "Composite", - className: "WorkspaceFeatures" - } } } } }; -export const WorkspacePatch: coreClient.CompositeMapper = { +export const StorageInsight: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacePatch", + className: "StorageInsight", modelProperties: { - ...AzureEntityResource.type.modelProperties, + ...ProxyResource.type.modelProperties, + eTag: { + serializedName: "eTag", + type: { + name: "String" + } + }, tags: { serializedName: "tags", type: { @@ -2136,93 +2513,108 @@ export const WorkspacePatch: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + containers: { + serializedName: "properties.containers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - customerId: { - serializedName: "properties.customerId", - readOnly: true, + tables: { + serializedName: "properties.tables", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sku: { - serializedName: "properties.sku", + storageAccount: { + serializedName: "properties.storageAccount", type: { name: "Composite", - className: "WorkspaceSku" + className: "StorageAccount" } }, - retentionInDays: { - serializedName: "properties.retentionInDays", - nullable: true, + status: { + serializedName: "properties.status", type: { - name: "Number" + name: "Composite", + className: "StorageInsightStatus" + } + } + } + } +}; + +export const SavedSearch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SavedSearch", + modelProperties: { + ...ProxyResource.type.modelProperties, + etag: { + serializedName: "etag", + type: { + name: "String" } }, - workspaceCapping: { - serializedName: "properties.workspaceCapping", + category: { + serializedName: "properties.category", + required: true, type: { - name: "Composite", - className: "WorkspaceCapping" + name: "String" } }, - createdDate: { - serializedName: "properties.createdDate", - readOnly: true, + displayName: { + serializedName: "properties.displayName", + required: true, type: { name: "String" } }, - modifiedDate: { - serializedName: "properties.modifiedDate", - readOnly: true, + query: { + serializedName: "properties.query", + required: true, type: { name: "String" } }, - publicNetworkAccessForIngestion: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForIngestion", + functionAlias: { + serializedName: "properties.functionAlias", type: { name: "String" } }, - publicNetworkAccessForQuery: { - defaultValue: "Enabled", - serializedName: "properties.publicNetworkAccessForQuery", + functionParameters: { + serializedName: "properties.functionParameters", type: { name: "String" } }, - forceCmkForQuery: { - serializedName: "properties.forceCmkForQuery", + version: { + serializedName: "properties.version", type: { - name: "Boolean" + name: "Number" } }, - privateLinkScopedResources: { - serializedName: "properties.privateLinkScopedResources", - readOnly: true, + tags: { + serializedName: "properties.tags", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrivateLinkScopedResource" + className: "Tag" } } } - }, - features: { - serializedName: "properties.features", - type: { - name: "Composite", - className: "WorkspaceFeatures" - } } } } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts index 548a6dfe7049..a8b5ab9b6083 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/parameters.ts @@ -12,6 +12,9 @@ import { OperationQueryParameter } from "@azure/core-client"; import { + Workspace as WorkspaceMapper, + WorkspacePatch as WorkspacePatchMapper, + Table as TableMapper, DataExport as DataExportMapper, DataSource as DataSourceMapper, LinkedService as LinkedServiceMapper, @@ -19,11 +22,8 @@ import { StorageInsight as StorageInsightMapper, SavedSearch as SavedSearchMapper, WorkspacePurgeBody as WorkspacePurgeBodyMapper, - Table as TableMapper, Cluster as ClusterMapper, - ClusterPatch as ClusterPatchMapper, - Workspace as WorkspaceMapper, - WorkspacePatch as WorkspacePatchMapper + ClusterPatch as ClusterPatchMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -50,6 +50,30 @@ export const $host: OperationURLParameter = { skipEncoding: true }; +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-12-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -79,6 +103,23 @@ export const resourceGroupName: OperationURLParameter = { } }; +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", + type: { + name: "String" + } + } +}; + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceMapper +}; + export const workspaceName: OperationURLParameter = { parameterPath: "workspaceName", mapper: { @@ -95,31 +136,50 @@ export const workspaceName: OperationURLParameter = { } }; -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", +export const force: OperationQueryParameter = { + parameterPath: ["options", "force"], mapper: { - defaultValue: "2020-08-01", - isConstant: true, - serializedName: "api-version", + serializedName: "force", + type: { + name: "Boolean" + } + } +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspacePatchMapper +}; + +export const parameters2: OperationParameter = { + parameterPath: "parameters", + mapper: TableMapper +}; + +export const tableName: OperationURLParameter = { + parameterPath: "tableName", + mapper: { + serializedName: "tableName", + required: true, type: { name: "String" } } }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - defaultValue: "application/json", + defaultValue: "2020-08-01", isConstant: true, - serializedName: "Content-Type", + serializedName: "api-version", type: { name: "String" } } }; -export const parameters: OperationParameter = { +export const parameters3: OperationParameter = { parameterPath: "parameters", mapper: DataExportMapper }; @@ -151,7 +211,7 @@ export const dataExportName1: OperationURLParameter = { } }; -export const parameters1: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", mapper: DataSourceMapper }; @@ -188,18 +248,6 @@ export const skiptoken: OperationQueryParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - export const intelligencePackName: OperationURLParameter = { parameterPath: "intelligencePackName", mapper: { @@ -211,7 +259,7 @@ export const intelligencePackName: OperationURLParameter = { } }; -export const parameters2: OperationParameter = { +export const parameters5: OperationParameter = { parameterPath: "parameters", mapper: LinkedServiceMapper }; @@ -227,7 +275,7 @@ export const linkedServiceName: OperationURLParameter = { } }; -export const parameters3: OperationParameter = { +export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: LinkedStorageAccountsResourceMapper }; @@ -266,7 +314,7 @@ export const asyncOperationId: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: StorageInsightMapper }; @@ -293,7 +341,7 @@ export const savedSearchId: OperationURLParameter = { } }; -export const parameters5: OperationParameter = { +export const parameters8: OperationParameter = { parameterPath: "parameters", mapper: SavedSearchMapper }; @@ -325,18 +373,6 @@ export const purgeId: OperationURLParameter = { } }; -export const apiVersion1: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2020-10-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -349,23 +385,7 @@ export const apiVersion2: OperationQueryParameter = { } }; -export const parameters6: OperationParameter = { - parameterPath: "parameters", - mapper: TableMapper -}; - -export const tableName: OperationURLParameter = { - parameterPath: "tableName", - mapper: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - } -}; - -export const parameters7: OperationParameter = { +export const parameters9: OperationParameter = { parameterPath: "parameters", mapper: ClusterMapper }; @@ -397,27 +417,7 @@ export const clusterName1: OperationURLParameter = { } }; -export const parameters8: OperationParameter = { - parameterPath: "parameters", - mapper: ClusterPatchMapper -}; - -export const parameters9: OperationParameter = { - parameterPath: "parameters", - mapper: WorkspaceMapper -}; - -export const force: OperationQueryParameter = { - parameterPath: ["options", "force"], - mapper: { - serializedName: "force", - type: { - name: "Boolean" - } - } -}; - export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: WorkspacePatchMapper + mapper: ClusterPatchMapper }; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts index 72993d35f63c..56aeaf21f6e1 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClient.ts @@ -9,6 +9,10 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; import { + OperationsImpl, + WorkspacesImpl, + DeletedWorkspacesImpl, + TablesImpl, DataExportsImpl, DataSourcesImpl, IntelligencePacksImpl, @@ -22,15 +26,15 @@ import { SavedSearchesImpl, AvailableServiceTiersImpl, GatewaysImpl, - SchemaImpl, + SchemaOperationsImpl, WorkspacePurgeImpl, - OperationsImpl, - TablesImpl, - ClustersImpl, - WorkspacesImpl, - DeletedWorkspacesImpl + ClustersImpl } from "./operations"; import { + Operations, + Workspaces, + DeletedWorkspaces, + Tables, DataExports, DataSources, IntelligencePacks, @@ -44,13 +48,9 @@ import { SavedSearches, AvailableServiceTiers, Gateways, - Schema, + SchemaOperations, WorkspacePurge, - Operations, - Tables, - Clusters, - Workspaces, - DeletedWorkspaces + Clusters } from "./operationsInterfaces"; import { OperationalInsightsManagementClientOptionalParams } from "./models"; @@ -85,7 +85,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien credential: credentials }; - const packageDetails = `azsdk-js-arm-operationalinsights/8.0.0`; + const packageDetails = `azsdk-js-arm-operationalinsights/9.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -108,6 +108,10 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.deletedWorkspaces = new DeletedWorkspacesImpl(this); + this.tables = new TablesImpl(this); this.dataExports = new DataExportsImpl(this); this.dataSources = new DataSourcesImpl(this); this.intelligencePacks = new IntelligencePacksImpl(this); @@ -121,15 +125,15 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien this.savedSearches = new SavedSearchesImpl(this); this.availableServiceTiers = new AvailableServiceTiersImpl(this); this.gateways = new GatewaysImpl(this); - this.schema = new SchemaImpl(this); + this.schemaOperations = new SchemaOperationsImpl(this); this.workspacePurge = new WorkspacePurgeImpl(this); - this.operations = new OperationsImpl(this); - this.tables = new TablesImpl(this); this.clusters = new ClustersImpl(this); - this.workspaces = new WorkspacesImpl(this); - this.deletedWorkspaces = new DeletedWorkspacesImpl(this); } + operations: Operations; + workspaces: Workspaces; + deletedWorkspaces: DeletedWorkspaces; + tables: Tables; dataExports: DataExports; dataSources: DataSources; intelligencePacks: IntelligencePacks; @@ -143,11 +147,7 @@ export class OperationalInsightsManagementClient extends coreClient.ServiceClien savedSearches: SavedSearches; availableServiceTiers: AvailableServiceTiers; gateways: Gateways; - schema: Schema; + schemaOperations: SchemaOperations; workspacePurge: WorkspacePurge; - operations: Operations; - tables: Tables; clusters: Clusters; - workspaces: Workspaces; - deletedWorkspaces: DeletedWorkspaces; } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts index 628a2c9fed35..bc9dbc06f8c9 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/availableServiceTiers.ts @@ -64,7 +64,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { } } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts index 7bf2ae7be597..c9565dd1f468 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts @@ -538,7 +538,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters7, + requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, @@ -616,7 +616,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters8, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, @@ -642,9 +642,9 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.nextLink + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer @@ -663,8 +663,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.subscriptionId ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts index 0d03f0a6eced..8dbef483abcd 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts @@ -187,7 +187,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -212,8 +212,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -237,7 +237,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -259,7 +259,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts index c269b3312140..65570187df55 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataSources.ts @@ -232,8 +232,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DataSource } }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataSources/{dataSourceName}", httpMethod: "DELETE", responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -269,7 +269,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DataSource } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -290,7 +290,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { } }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion1, Parameters.filter, Parameters.skiptoken ], @@ -312,16 +312,16 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { } }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion1, Parameters.filter, Parameters.skiptoken ], urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts index 6c434492e680..bafc569ce048 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts @@ -152,7 +152,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -169,7 +169,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts index d1fb688745cd..79f973d04d8a 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/gateways.ts @@ -52,7 +52,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts index c35fd126bd82..67b5f1ba35dc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/index.ts @@ -6,6 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./operations"; +export * from "./workspaces"; +export * from "./deletedWorkspaces"; +export * from "./tables"; export * from "./dataExports"; export * from "./dataSources"; export * from "./intelligencePacks"; @@ -19,10 +23,6 @@ export * from "./storageInsightConfigs"; export * from "./savedSearches"; export * from "./availableServiceTiers"; export * from "./gateways"; -export * from "./schema"; +export * from "./schemaOperations"; export * from "./workspacePurge"; -export * from "./operations"; -export * from "./tables"; export * from "./clusters"; -export * from "./workspaces"; -export * from "./deletedWorkspaces"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts index b6d5335d0a7e..bad141e3b891 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/intelligencePacks.ts @@ -94,7 +94,7 @@ const disableOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable", httpMethod: "POST", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -109,7 +109,7 @@ const enableOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable", httpMethod: "POST", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -135,7 +135,7 @@ const listOperationSpec: coreClient.OperationSpec = { } } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts index 1b5bcde3fb21..41ea99f7e921 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedServices.ts @@ -347,8 +347,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedService } }, - requestBody: Parameters.parameters2, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -378,7 +378,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedService } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -398,7 +398,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedService } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -418,7 +418,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedServiceListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts index 1cc9823090f0..3bf648509958 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/linkedStorageAccounts.ts @@ -190,8 +190,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedStorageAccountsResource } }, - requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -208,7 +208,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedStorageAccounts/{dataSourceType}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -227,7 +227,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedStorageAccountsResource } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,7 +247,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LinkedStorageAccountsListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts index 4bc8ff3c2d27..f290e2fa17d0 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/managementGroups.ts @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WorkspaceListManagementGroupsResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts index dd0df6c485e8..fc2a28825eb2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/operationStatuses.ts @@ -57,7 +57,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationStatus } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts index 6e78b7bce1f9..54b4c34f2f1f 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/operations.ts @@ -114,7 +114,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer @@ -130,7 +130,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts index b89eaf219501..5ff157d2b0d6 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/savedSearches.ts @@ -118,7 +118,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/savedSearches/{savedSearchId}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -137,8 +137,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SavedSearch } }, - requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -159,7 +159,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SavedSearch } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -179,7 +179,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SavedSearchesListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/schema.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/schemaOperations.ts similarity index 86% rename from sdk/operationalinsights/arm-operationalinsights/src/operations/schema.ts rename to sdk/operationalinsights/arm-operationalinsights/src/operations/schemaOperations.ts index 8eeaf89350ef..667ec9b7d518 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/schema.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/schemaOperations.ts @@ -6,19 +6,19 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { Schema } from "../operationsInterfaces"; +import { SchemaOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { OperationalInsightsManagementClient } from "../operationalInsightsManagementClient"; import { SchemaGetOptionalParams, SchemaGetResponse } from "../models"; -/** Class containing Schema operations. */ -export class SchemaImpl implements Schema { +/** Class containing SchemaOperations operations. */ +export class SchemaOperationsImpl implements SchemaOperations { private readonly client: OperationalInsightsManagementClient; /** - * Initialize a new instance of the class Schema class. + * Initialize a new instance of the class SchemaOperations class. * @param client Reference to the service client */ constructor(client: OperationalInsightsManagementClient) { @@ -54,7 +54,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SearchGetSchemaResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts index a6543cd1cd92..fb13c24a024c 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/sharedKeysOperations.ts @@ -77,7 +77,7 @@ const getSharedKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SharedKeys } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -96,7 +96,7 @@ const regenerateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.SharedKeys } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts index ff2e9fec9169..8c14959967d1 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/storageInsightConfigs.ts @@ -225,8 +225,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsight } }, - requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion], + requestBody: Parameters.parameters7, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,7 +247,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsight } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -263,7 +263,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}", httpMethod: "DELETE", responses: { 200: {}, 204: {} }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -282,7 +282,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsightListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -300,13 +300,13 @@ const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.StorageInsightListResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, + Parameters.nextLink, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts index 7055f36ebb92..fa164f4e7653 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts @@ -12,16 +12,19 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { OperationalInsightsManagementClient } from "../operationalInsightsManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; import { Table, TablesListByWorkspaceOptionalParams, TablesListByWorkspaceResponse, + TablesCreateOrUpdateOptionalParams, + TablesCreateOrUpdateResponse, TablesUpdateOptionalParams, TablesUpdateResponse, - TablesCreateOptionalParams, - TablesCreateResponse, TablesGetOptionalParams, - TablesGetResponse + TablesGetResponse, + TablesDeleteOptionalParams } from "../models"; /// @@ -115,45 +118,192 @@ export class TablesImpl implements Tables { } /** - * Updates a Log Analytics workspace table properties. + * Update or Create a Log Analytics workspace table. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param tableName The name of the table. * @param parameters The parameters required to update table properties. * @param options The options parameters. */ - update( + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + TablesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, tableName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Update or Create a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param parameters The parameters required to update table properties. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + tableName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Update a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param parameters The parameters required to update table properties. + * @param options The options parameters. + */ + async beginUpdate( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike, TablesUpdateResponse> + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, workspaceName, tableName, parameters, options }, updateOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); } /** - * Updates a Log Analytics workspace table properties. + * Update a Log Analytics workspace table. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param tableName The name of the table. * @param parameters The parameters required to update table properties. * @param options The options parameters. */ - create( + async beginUpdateAndWait( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, - options?: TablesCreateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, tableName, parameters, options }, - createOperationSpec + options?: TablesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + tableName, + parameters, + options ); + return poller.pollUntilDone(); } /** @@ -174,6 +324,92 @@ export class TablesImpl implements Tables { getOperationSpec ); } + + /** + * Delete a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { resourceGroupName, workspaceName, tableName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + + /** + * Delete a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + tableName, + options + ); + return poller.pollUntilDone(); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -190,7 +426,7 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -200,20 +436,29 @@ const listByWorkspaceOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const updateOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", - httpMethod: "PATCH", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Table }, + 201: { + bodyMapper: Mappers.Table + }, + 202: { + bodyMapper: Mappers.Table + }, + 204: { + bodyMapper: Mappers.Table + }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -225,20 +470,29 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const createOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", - httpMethod: "PUT", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Table }, + 201: { + bodyMapper: Mappers.Table + }, + 202: { + bodyMapper: Mappers.Table + }, + 204: { + bodyMapper: Mappers.Table + }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -262,7 +516,31 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.tableName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts index f67f1dac76db..a9b3c3333716 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/usages.ts @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WorkspaceListUsagesResult } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts index a4bf96299ccc..59cb12087176 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspacePurge.ts @@ -90,7 +90,7 @@ const purgeOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -110,7 +110,7 @@ const getPurgeStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.WorkspacePurgeStatusResponse } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts index 1984b54b8aed..8a46a4335b50 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts @@ -372,7 +372,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -389,7 +389,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -419,8 +419,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -444,7 +444,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2, Parameters.force], + queryParameters: [Parameters.apiVersion, Parameters.force], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -466,7 +466,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -488,8 +488,8 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters10, - queryParameters: [Parameters.apiVersion2], + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts index c35fd126bd82..67b5f1ba35dc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/index.ts @@ -6,6 +6,10 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./operations"; +export * from "./workspaces"; +export * from "./deletedWorkspaces"; +export * from "./tables"; export * from "./dataExports"; export * from "./dataSources"; export * from "./intelligencePacks"; @@ -19,10 +23,6 @@ export * from "./storageInsightConfigs"; export * from "./savedSearches"; export * from "./availableServiceTiers"; export * from "./gateways"; -export * from "./schema"; +export * from "./schemaOperations"; export * from "./workspacePurge"; -export * from "./operations"; -export * from "./tables"; export * from "./clusters"; -export * from "./workspaces"; -export * from "./deletedWorkspaces"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schemaOperations.ts similarity index 88% rename from sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts rename to sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schemaOperations.ts index 389270add2cb..6216257a90e2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schema.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/schemaOperations.ts @@ -8,8 +8,8 @@ import { SchemaGetOptionalParams, SchemaGetResponse } from "../models"; -/** Interface representing a Schema. */ -export interface Schema { +/** Interface representing a SchemaOperations. */ +export interface SchemaOperations { /** * Gets the schema for a given workspace. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts index a4bc04c610ee..58500a045301 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationsInterfaces/tables.ts @@ -7,15 +7,17 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Table, TablesListByWorkspaceOptionalParams, + TablesCreateOrUpdateOptionalParams, + TablesCreateOrUpdateResponse, TablesUpdateOptionalParams, TablesUpdateResponse, - TablesCreateOptionalParams, - TablesCreateResponse, TablesGetOptionalParams, - TablesGetResponse + TablesGetResponse, + TablesDeleteOptionalParams } from "../models"; /// @@ -33,35 +35,72 @@ export interface Tables { options?: TablesListByWorkspaceOptionalParams ): PagedAsyncIterableIterator
; /** - * Updates a Log Analytics workspace table properties. + * Update or Create a Log Analytics workspace table. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param tableName The name of the table. * @param parameters The parameters required to update table properties. * @param options The options parameters. */ - update( + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + TablesCreateOrUpdateResponse + > + >; + /** + * Update or Create a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param parameters The parameters required to update table properties. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + parameters: Table, + options?: TablesCreateOrUpdateOptionalParams + ): Promise; + /** + * Update a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param parameters The parameters required to update table properties. + * @param options The options parameters. + */ + beginUpdate( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, options?: TablesUpdateOptionalParams - ): Promise; + ): Promise< + PollerLike, TablesUpdateResponse> + >; /** - * Updates a Log Analytics workspace table properties. + * Update a Log Analytics workspace table. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param tableName The name of the table. * @param parameters The parameters required to update table properties. * @param options The options parameters. */ - create( + beginUpdateAndWait( resourceGroupName: string, workspaceName: string, tableName: string, parameters: Table, - options?: TablesCreateOptionalParams - ): Promise; + options?: TablesUpdateOptionalParams + ): Promise; /** * Gets a Log Analytics workspace table. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -75,4 +114,30 @@ export interface Tables { tableName: string, options?: TablesGetOptionalParams ): Promise; + /** + * Delete a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete a Log Analytics workspace table. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the workspace. + * @param tableName The name of the table. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + tableName: string, + options?: TablesDeleteOptionalParams + ): Promise; } diff --git a/sdk/operationalinsights/arm-operationalinsights/tsconfig.json b/sdk/operationalinsights/arm-operationalinsights/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/operationalinsights/arm-operationalinsights/tsconfig.json +++ b/sdk/operationalinsights/arm-operationalinsights/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file