From 9655ddc8c67531d9a8d4b43e28d3aaf70cc2421e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 18 Apr 2023 05:38:15 +0000 Subject: [PATCH] CodeGen from PR 23107 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.Monitor to add version stable/2023-04-03 (#23107) * Adds base for updating Microsoft.Monitor from version preview/2021-06-03-preview to version 2023-04-03 * Updates readme * Updates API version in new specs and examples * add publicNetworkAccess * add PrivateEndpointConnections * add PrivateEndpointConnections subclasses * give PrivateEndpointConnectionProperties.ProvisioningState enum vals * give publicNetworkAccess an enum * add privateEndpointConnections and publicNetworkAccess to Create example * add PrivateEndpointConnection and PublicNetworkAccess to other examples * attempt to fix XmsIdentifierValidation linter error * attempt to fix ArrayMustHaveType linter error * attempt to fix XmsEnumValidation and retry XmsIdentifierValidation errors * attempt to fix MISSING_APIS_IN_DEFAULT_TAG * use common-type for PrivateEndpointConnection ref, remove nested fields * update Create and Delete responses for async operations * further async update * Revert "further async update" This reverts commit c9c17da74b47425d3d61dfbf42864e8f52cbb41a. * Revert "update Create and Delete responses for async operations" This reverts commit c0b10315fb54429d9477e235b8a0106edaaa9f50. * remove 201 from Create, 200 and 204 from Delete, add 202 to Delete * readd 204 to Delete * make corresponding response updates to API * add x-ms-long-running-operation: true to Delete * add x-ms-long-running-operation-options for Delete * try to fix Lro errors * try to fix errors * try to fix errors * attempt fix again * try again * continue * continue * once more * another try * last one for real * last one v2 * just one more * last or second to last one, guaranteed * attempt cleanup * Revert "attempt cleanup" This reverts commit 0fc498fb40230cc0b72dc75ae457f6ac599f4731. * reintroduce 201 response for PUT * remove double readme entry * resolve Go SDK duplication schema issue * revert change --------- Co-authored-by: James Lai Co-authored-by: Chenjie Shi --- schemas/2023-04-03/Microsoft.Monitor.json | 82 ++++++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 85 insertions(+) create mode 100644 schemas/2023-04-03/Microsoft.Monitor.json diff --git a/schemas/2023-04-03/Microsoft.Monitor.json b/schemas/2023-04-03/Microsoft.Monitor.json new file mode 100644 index 0000000000..f380e3d359 --- /dev/null +++ b/schemas/2023-04-03/Microsoft.Monitor.json @@ -0,0 +1,82 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-04-03/Microsoft.Monitor.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Monitor", + "description": "Microsoft Monitor Resource Types", + "resourceDefinitions": { + "accounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-04-03" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Azure Monitor workspace. The name is case insensitive" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AzureMonitorWorkspaceResourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource properties" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Monitor/accounts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Monitor/accounts" + } + }, + "definitions": { + "AzureMonitorWorkspaceResourceProperties": { + "type": "object", + "properties": {}, + "description": "Resource properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index dc4708cefe..5fac452628 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -16465,6 +16465,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-06-03-preview/Microsoft.Monitor.json#/resourceDefinitions/accounts" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-04-03/Microsoft.Monitor.json#/resourceDefinitions/accounts" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-08-15/Microsoft.NetApp.json#/resourceDefinitions/netAppAccounts" },