Skip to content

Commit

Permalink
CodeGen from PR 13793 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d692a11507e73364d0384f91d9d0710dc75fef69 into 6fa6101166a28f1fd82d6a60b8038c9af236e2be
  • Loading branch information
SDKAuto committed Apr 14, 2021
1 parent b83c958 commit 46bc474
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 85 deletions.
68 changes: 68 additions & 0 deletions schemas/2015-05-01/Microsoft.Insights.Application.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,23 @@
],
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
},
"Type": {
"oneOf": [
{
"type": "string",
"enum": [
"query",
"function",
"folder",
"recent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Enum indicating the type of the Analytics item."
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -494,6 +511,23 @@
],
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
},
"Type": {
"oneOf": [
{
"type": "string",
"enum": [
"query",
"function",
"folder",
"recent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Enum indicating the type of the Analytics item."
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1112,6 +1146,23 @@
],
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
},
"Type": {
"oneOf": [
{
"type": "string",
"enum": [
"query",
"function",
"folder",
"recent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Enum indicating the type of the Analytics item."
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1437,6 +1488,23 @@
],
"description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component."
},
"Type": {
"oneOf": [
{
"type": "string",
"enum": [
"query",
"function",
"folder",
"recent"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Enum indicating the type of the Analytics item."
},
"type": {
"type": "string",
"enum": [
Expand Down
187 changes: 102 additions & 85 deletions schemas/2020-10-05-preview/Microsoft.Insights.Application.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,6 @@
],
"description": "An XML configuration specification for a WebTest."
},
"ContentValidation": {
"oneOf": [
{
"$ref": "#/definitions/WebTestPropertiesContentValidation"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The collection of content validation properties"
},
"Description": {
"type": "string",
"description": "User defined description for this WebTest."
Expand All @@ -144,17 +133,6 @@
],
"description": "Is the test actively being monitored."
},
"ExpectedHttpStatusCode": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Validate that the WebTest returns the http status code provided."
},
"Frequency": {
"oneOf": [
{
Expand All @@ -167,17 +145,6 @@
],
"description": "Interval in seconds between test runs for this WebTest. Default value is 300."
},
"IgnoreHttpsStatusCode": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "When set, validation will ignore the status code."
},
"Kind": {
"oneOf": [
{
Expand Down Expand Up @@ -235,43 +202,32 @@
],
"description": "Allow for retries should this WebTest fail."
},
"SSLCertRemainingLifetimeCheck": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "A number of days to check still remain before the the existing SSL cert expires."
"SyntheticMonitorId": {
"type": "string",
"description": "Unique ID of this WebTest. This is typically the same value as the Name field."
},
"SSLCheck": {
"Timeout": {
"oneOf": [
{
"type": "boolean"
"type": "integer",
"default": "30"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Checks to see if the SSL cert is still valid."
},
"SyntheticMonitorId": {
"type": "string",
"description": "Unique ID of this WebTest. This is typically the same value as the Name field."
"description": "Seconds until this WebTest will timeout and fail. Default value is 30."
},
"Timeout": {
"ValidationRules": {
"oneOf": [
{
"type": "integer",
"default": "30"
"$ref": "#/definitions/WebTestPropertiesValidationRules"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Seconds until this WebTest will timeout and fail. Default value is 30."
"description": "The collection of validation rule properties"
}
},
"required": [
Expand All @@ -292,14 +248,10 @@
},
"description": "An XML configuration specification for a WebTest."
},
"WebTestPropertiesContentValidation": {
"WebTestPropertiesRequest": {
"type": "object",
"properties": {
"ContentMatch": {
"type": "string",
"description": "Content to look for in the return of the WebTest."
},
"IgnoreCase": {
"FollowRedirects": {
"oneOf": [
{
"type": "boolean"
Expand All @@ -308,9 +260,27 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "When set, this value makes the ContentMatch validation case insensitive."
"description": "Follow redirects for this web test."
},
"PassIfTextFound": {
"Headers": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HeaderField"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of headers and their values to add to the WebTest call."
},
"HttpVerb": {
"type": "string",
"description": "Http verb to use for this web test."
},
"ParseDependentRequests": {
"oneOf": [
{
"type": "boolean"
Expand All @@ -319,15 +289,45 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match"
"description": "Parse Dependent request for this WebTest."
},
"RequestBody": {
"type": "string",
"description": "Base64 encoded string body to send with this web test."
},
"RequestUrl": {
"type": "string",
"description": "Url location to test."
}
},
"description": "The collection of content validation properties"
"description": "The collection of request properties"
},
"WebTestPropertiesRequest": {
"WebTestPropertiesValidationRules": {
"type": "object",
"properties": {
"FollowRedirects": {
"ContentValidation": {
"oneOf": [
{
"$ref": "#/definitions/WebTestPropertiesValidationRulesContentValidation"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The collection of content validation properties"
},
"ExpectedHttpStatusCode": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Validate that the WebTest returns the http status code provided."
},
"IgnoreHttpsStatusCode": {
"oneOf": [
{
"type": "boolean"
Expand All @@ -336,27 +336,41 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Follow redirects for this web test."
"description": "When set, validation will ignore the status code."
},
"Headers": {
"SSLCertRemainingLifetimeCheck": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HeaderField"
}
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of headers and their values to add to the WebTest call."
"description": "A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true."
},
"HttpVerb": {
"SSLCheck": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Checks to see if the SSL cert is still valid."
}
},
"description": "The collection of validation rule properties"
},
"WebTestPropertiesValidationRulesContentValidation": {
"type": "object",
"properties": {
"ContentMatch": {
"type": "string",
"description": "Http verb to use for this web test."
"description": "Content to look for in the return of the WebTest. Must not be null or empty."
},
"ParseDependentRequests": {
"IgnoreCase": {
"oneOf": [
{
"type": "boolean"
Expand All @@ -365,18 +379,21 @@
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Parse Dependent request for this WebTest."
},
"RequestBody": {
"type": "string",
"description": "Base64 encoded string body to send with this web test."
"description": "When set, this value makes the ContentMatch validation case insensitive."
},
"RequestUrl": {
"type": "string",
"description": "Url location to test."
"PassIfTextFound": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match"
}
},
"description": "The collection of request properties"
"description": "The collection of content validation properties"
}
}
}
Loading

0 comments on commit 46bc474

Please sign in to comment.