From c249270d80b96c82c2c9680b22fb6a52350155d5 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 14 Apr 2023 05:23:07 +0000 Subject: [PATCH] CodeGen from PR 23343 in Azure/azure-rest-api-specs Fixing APIs in 2023-02-01-preview (#23343) * Base API Commit * Changing API version to 2023-02-01-preview * Adding new getOrganizationApiKey post API * Adding returnApiKey property in ElasticMonitorResource * Updating getOrganizationApiKey URI * Adding SubscriptionIdParameter in getOrganizationApiKey * Renaming ex to Organizations_GetApiKey * Updating description for UserApiKeyResponse * Updating examples * Updating readme.md * Updated Depolyment Info, added marketplace info * prettier check fixed * model validation fixed * validation fix * prettier fix * Increasing max length limit of companyName and business from 50 to 100 * Increasing companyName and business max length limits to 100 in all versions * Revert "Increasing companyName and business max length limits to 100 in all versions" This reverts commit c8977b64daa962bce70d33a325053294a4875610. * Revert "Increasing max length limit of companyName and business from 50 to 100" This reverts commit 7bd354775b3a57abf310a351c75763bc1aa121f3. * Updating summary for getOrganizationApiKey * Renaming "returnApiKey" to "generateApiKey" * Adding "x-ms-secret": true for apiKey * Updating getOrganizationApiKey API to /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/getOrganizationApiKey * Rearranging APIs * Adding "consumes" to getOrganizationApiKey * Changing case of emailId * Moving the API under paths * Updating User and Company related properties' max length limit to 64 * Adding Location in response header of LROs * Updating getOrganizationApiKey path * Updating getOrganizationApiKey Summary * Moving "generateApiKey" inside MonitorProperties * Updating getOrganizationApiKey path * Adding listElasticVersions API * Prettier check fix for ElasticVersions_Get * Fixing Prettier Check in ElasticVersions_Get Example file * updated description for schemas and parameters * updated description for schemas and parameters fix * Updating getOrganizationApiKey API name to listOrganizationApiKey * Adding x-ms-pageable in listOrganizationApiKey * Revert "Adding x-ms-pageable in listOrganizationApiKey" This reverts commit d5b0b5c46370373bd0388fd2271edb35e06facde. * Revert "Updating getOrganizationApiKey API name to listOrganizationApiKey" This reverts commit bfd1a05f2352a3b650b258f1ae2428a531036318. * updated description for subscription Id in elasticVersions Api specification * prettier check fixed * updated listElasticVersions API * added description for regionName param and elasticversionlistresponse * updated API path and added region as query param * updated verb to noun in the api path * added x-ms-parameter-location 1 * updated the operationID for elasticVersions Api * updated the operationID for elasticVersions Api 1 * reverted x-ms-parameter-location from the subscriptionId parameter --------- Co-authored-by: Rhea Hooda --- schemas/2023-02-01-preview/Microsoft.Elastic.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/schemas/2023-02-01-preview/Microsoft.Elastic.json b/schemas/2023-02-01-preview/Microsoft.Elastic.json index 484d07abb5..554646e118 100644 --- a/schemas/2023-02-01-preview/Microsoft.Elastic.json +++ b/schemas/2023-02-01-preview/Microsoft.Elastic.json @@ -360,6 +360,17 @@ ], "description": "Elastic Resource Properties." }, + "generateApiKey": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Flag to determine if User API Key has to be generated and shared." + }, "liftrResourceCategory": { "oneOf": [ {