From ef1d3692d6ab61165d3b74d396ebb2c5ccd8d27d Mon Sep 17 00:00:00 2001 From: Irina Rogozhkina Date: Sat, 18 Jul 2020 18:08:39 -0700 Subject: [PATCH 1/2] Added new properties to connection monitor endpoint --- .../stable/2020-06-01/networkWatcher.json | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json index 425c52415631..b1e50dd02d82 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json @@ -4141,6 +4141,22 @@ "type": "string", "description": "The name of the connection monitor endpoint." }, + "type": { + "type": "string", + "enum": [ + "AzureVM", + "AzureVNet", + "AzureSubnet", + "ExternalAddress", + "MMAWorkspaceMachine", + "MMAWorkspaceNetwork" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": true + }, + "description": "The endpoint type." + }, "resourceId": { "type": "string", "description": "Resource ID of the connection monitor endpoint." @@ -4152,6 +4168,26 @@ "filter": { "$ref": "#/definitions/ConnectionMonitorEndpointFilter", "description": "Filter for sub-items within the endpoint." + }, + "scope": { + "$ref": "#/definitions/ConnectionMonitorEndpointScope", + "description": "Endpoint scope." + }, + "coverageLevel": { + "type": "string", + "enum": [ + "Default", + "Low", + "BelowAverage", + "Average", + "AboveAverage", + "Full" + ], + "x-ms-enum": { + "name": "CoverageLevel", + "modelAsString": true + }, + "description": "Test coverage for the endpoint." } }, "required": [ @@ -4159,6 +4195,34 @@ ], "description": "Describes the connection monitor endpoint." }, + "ConnectionMonitorEndpointScope": { + "properties": { + "include": { + "type": "array", + "description": "List of items which needs to be included to the endpoint scope.", + "items": { + "$ref": "#/definitions/ConnectionMonitorEndpointScopeItem" + } + }, + "exclude": { + "type": "array", + "description": "List of items which needs to be excluded from the endpoint scope.", + "items": { + "$ref": "#/definitions/ConnectionMonitorEndpointScopeItem" + } + } + }, + "description": "Describes the connection monitor endpoint scope." + }, + "ConnectionMonitorEndpointScopeItem": { + "properties": { + "address": { + "type": "string", + "description": "The address of the endpoint item." + } + }, + "description": "Describes the connection monitor endpoint scope item." + }, "ConnectionMonitorEndpointFilter": { "properties": { "type": { From fb0ef23168b7c6f4e4dea08b26bf0d9f76b56f7d Mon Sep 17 00:00:00 2001 From: Irina Rogozhkina Date: Mon, 20 Jul 2020 12:31:12 -0700 Subject: [PATCH 2/2] Updated description of endpointScopeItem --- .../Microsoft.Network/stable/2020-06-01/networkWatcher.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json b/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json index b1e50dd02d82..ee456bebb492 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/networkWatcher.json @@ -4218,7 +4218,7 @@ "properties": { "address": { "type": "string", - "description": "The address of the endpoint item." + "description": "The address of the endpoint item. Supported types are IPv4/IPv6 subnet mask or IPv4/IPv6 IP address." } }, "description": "Describes the connection monitor endpoint scope item."