From c9301acdd77fddfbbc6e390618ff0ffc9f4bdb1f Mon Sep 17 00:00:00 2001 From: Vasim Patel Date: Mon, 1 Jul 2024 12:30:26 -0700 Subject: [PATCH 1/3] updated settings file --- .../preview/2024-04-01-preview/Settings.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json index 693c78e071c2..cff4a91ab517 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json @@ -73,6 +73,9 @@ "$ref": "../../../common/2.0/types.json#/definitions/CloudError" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -201,6 +204,12 @@ "$ref": "#/definitions/Settings" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Settings" + } + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -221,6 +230,11 @@ "$ref": "#/definitions/Settings" }, "type": "array" + }, + "nextLink": { + "description": "URL to fetch the next set of settings.", + "readOnly": true, + "type": "string" } }, "required": [ @@ -417,7 +431,8 @@ "name": "settingsName", "required": true, "type": "string", - "x-ms-parameter-location": "method" + "x-ms-parameter-location": "method", + "pattern": "^[a-z][a-z0-9]*$" } } } From b622f3bee3fd5607fe62f8320042499f6faf00be Mon Sep 17 00:00:00 2001 From: Vasim Patel Date: Mon, 1 Jul 2024 12:47:50 -0700 Subject: [PATCH 2/3] fix model issues --- .../preview/2024-04-01-preview/Settings.json | 2 +- .../examples/settings/UpdateEyesOnSetting.json | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json index cff4a91ab517..e46789548ccd 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/Settings.json @@ -432,7 +432,7 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z][a-zA-Z0-9]*$" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json index ad81d8f9936e..82c33d4ab4e1 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json @@ -23,6 +23,18 @@ "isEnabled": true } } + }, + "201": { + "body": { + "id": "/subscriptions/bd794837-4d29-4647-9105-6339bfdb4e6a/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/workspaces/avdvirInt/providers/Microsoft.SecurityInsights/settings/EyesOn", + "name": "EyesOn", + "type": "Microsoft.SecurityInsights/settings", + "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", + "kind": "EyesOn", + "properties": { + "isEnabled": true + } + } } } -} +} \ No newline at end of file From ee278735b6a1609e2a95a43c37c04d888b0c159c Mon Sep 17 00:00:00 2001 From: Vasim Patel Date: Mon, 1 Jul 2024 15:31:43 -0700 Subject: [PATCH 3/3] ran prettier --- .../examples/settings/UpdateEyesOnSetting.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json index 82c33d4ab4e1..4cb84da05d12 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2024-04-01-preview/examples/settings/UpdateEyesOnSetting.json @@ -37,4 +37,4 @@ } } } -} \ No newline at end of file +}