Skip to content

Commit

Permalink
CodeGen from PR 12270 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Update advisor.json (#12270)
  • Loading branch information
SDKAuto committed Jan 7, 2021
1 parent a4968cd commit 0fdc6a9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 47 deletions.
9 changes: 5 additions & 4 deletions schemas/2016-07-12-preview/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Advisor",
"description": "Microsoft Advisor Resource Types",
"resourceDefinitions": {
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -47,7 +48,7 @@
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -56,8 +57,8 @@
"name",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {}
}
}
9 changes: 5 additions & 4 deletions schemas/2017-03-31/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Advisor",
"description": "Microsoft Advisor Resource Types",
"resourceDefinitions": {
"resourceDefinitions": {},
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -31,7 +32,7 @@
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -41,7 +42,7 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {
Expand All @@ -60,4 +61,4 @@
"description": "The properties of the suppression."
}
}
}
}
44 changes: 23 additions & 21 deletions schemas/2017-04-19/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
"type"
],
"description": "Microsoft.Advisor/configurations"
},
"recommendations_suppressions": {
}
},
"subscription_resourceDefinitions": {
"configurations": {
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -58,25 +60,31 @@
"2017-04-19"
]
},
"id": {
"type": "string",
"description": "The resource Id of the configuration resource."
},
"name": {
"type": "string",
"description": "The name of the suppression."
"enum": [
"configurations"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/SuppressionProperties"
"$ref": "#/definitions/ConfigDataProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the suppression."
"description": "The list of property name/value pairs."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/configurations"
]
}
},
Expand All @@ -86,11 +94,11 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/configurations"
}
},
"subscription_resourceDefinitions": {
"configurations": {
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -99,31 +107,25 @@
"2017-04-19"
]
},
"id": {
"type": "string",
"description": "The resource Id of the configuration resource."
},
"name": {
"type": "string",
"enum": [
"configurations"
]
"description": "The name of the suppression."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ConfigDataProperties"
"$ref": "#/definitions/SuppressionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The list of property name/value pairs."
"description": "The properties of the suppression."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/configurations"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -133,7 +135,7 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/configurations"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {
Expand Down Expand Up @@ -189,4 +191,4 @@
"description": "The properties of the suppression."
}
}
}
}
38 changes: 20 additions & 18 deletions schemas/2020-01-01/Microsoft.Advisor.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
"type"
],
"description": "Microsoft.Advisor/configurations"
},
"recommendations_suppressions": {
}
},
"subscription_resourceDefinitions": {
"configurations": {
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -57,23 +59,26 @@
},
"name": {
"type": "string",
"description": "The name of the suppression."
"enum": [
"default"
],
"description": "Advisor configuration name. Value must be 'default'"
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/SuppressionProperties"
"$ref": "#/definitions/ConfigDataProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the suppression."
"description": "Configuration data properties"
},
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/suppressions"
"Microsoft.Advisor/configurations"
]
}
},
Expand All @@ -83,11 +88,11 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/suppressions"
"description": "Microsoft.Advisor/configurations"
}
},
"subscription_resourceDefinitions": {
"configurations": {
"unknown_resourceDefinitions": {
"recommendations_suppressions": {
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -98,26 +103,23 @@
},
"name": {
"type": "string",
"enum": [
"default"
],
"description": "Advisor configuration name. Value must be 'default'"
"description": "The name of the suppression."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/ConfigDataProperties"
"$ref": "#/definitions/SuppressionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Configuration data properties"
"description": "The properties of the suppression."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Advisor/configurations"
"Microsoft.Advisor/recommendations/suppressions"
]
}
},
Expand All @@ -127,7 +129,7 @@
"properties",
"type"
],
"description": "Microsoft.Advisor/configurations"
"description": "Microsoft.Advisor/recommendations/suppressions"
}
},
"definitions": {
Expand Down Expand Up @@ -259,4 +261,4 @@
"description": "The properties of the suppression."
}
}
}
}

0 comments on commit 0fdc6a9

Please sign in to comment.