Skip to content

Commit

Permalink
CodeGen from PR 23107 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[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 <jamlai@microsoft.com>
Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
  • Loading branch information
3 people committed Apr 18, 2023
1 parent fded91e commit 9655ddc
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
82 changes: 82 additions & 0 deletions schemas/2023-04-03/Microsoft.Monitor.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 9655ddc

Please sign in to comment.