From 7a8774b34944581ba0e2544fc4c8d9a19032b62a Mon Sep 17 00:00:00 2001 From: Anat Gilenson <53407600+anat-gilenson@users.noreply.github.com> Date: Fri, 29 Oct 2021 06:43:20 +0300 Subject: [PATCH] Add corrections from 2021-03-01-preview (#16490) Co-authored-by: Anat Gilenson --- .../2021-09-01-preview/SourceControls.json | 10 +++++++- .../sourcecontrols/CreateSourceControl.json | 25 +++++++++++++++++-- .../sourcecontrols/GetSourceControlById.json | 12 ++++++++- .../sourcecontrols/GetSourceControls.json | 12 ++++++++- 4 files changed, 54 insertions(+), 5 deletions(-) diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/SourceControls.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/SourceControls.json index 9f26d16c9494..43aa090e4122 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/SourceControls.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/SourceControls.json @@ -368,7 +368,7 @@ "SourceControlProperties": { "description": "Describes source control properties", "properties": { - "sourceControlId": { + "id": { "description": "The id (a Guid) of the source control", "type": "string" }, @@ -417,6 +417,14 @@ "description": "Branch name of repository.", "type": "string" }, + "displayUrl": { + "description": "Display url of repository.", + "type": "string" + }, + "deploymentLogsUrl": { + "description": "Url to access repository action logs.", + "type": "string" + }, "pathMapping": { "description": "Dictionary of source control content type and path mapping.", "items": { diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/CreateSourceControl.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/CreateSourceControl.json index 5e49e3a3912e..cc5ea314f83b 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/CreateSourceControl.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/CreateSourceControl.json @@ -19,6 +19,7 @@ "repository": { "url": "https://github.com/user/repo", "branch": "master", + "displayUrl": "https://github.com/user/repo", "pathMapping": [ { "contentType": "AnalyticRules", @@ -41,7 +42,7 @@ "type": "Microsoft.SecurityInsights/SourceControls", "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", "properties": { - "sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a", + "id": "789e0c1f-4a3d-43ad-809c-e713b677b04a", "displayName": "My Source Control", "description": "this is a source control", "repoType": "Github", @@ -52,6 +53,8 @@ "repository": { "url": "https://github.com/user/repo", "branch": "master", + "displayUrl": "https://github.com/user/repo", + "deploymentLogsUrl": "https://github.com/user/repo/actions", "pathMapping": [ { "contentType": "AnalyticRules", @@ -63,6 +66,14 @@ } ] } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" } } }, @@ -73,7 +84,7 @@ "type": "Microsoft.SecurityInsights/SourceControls", "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", "properties": { - "sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a", + "id": "789e0c1f-4a3d-43ad-809c-e713b677b04a", "displayName": "My Source Control", "description": "this is a source control", "repoType": "Github", @@ -84,6 +95,8 @@ "repository": { "url": "https://github.com/user/repo", "branch": "master", + "displayUrl": "https://github.com/user/repo", + "deploymentLogsUrl": "https://github.com/user/repo/actions", "pathMapping": [ { "contentType": "AnalyticRules", @@ -95,6 +108,14 @@ } ] } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControlById.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControlById.json index 3eb742145cf8..d5580d16d5a2 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControlById.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControlById.json @@ -15,7 +15,7 @@ "type": "Microsoft.SecurityInsights/SourceControls", "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", "properties": { - "sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a", + "id": "789e0c1f-4a3d-43ad-809c-e713b677b04a", "displayName": "My Source Control", "description": "this is a source control", "repoType": "Github", @@ -26,6 +26,8 @@ "repository": { "url": "https://github.com/user/repo", "branch": "master", + "displayUrl": "https://github.com/user/repo", + "deploymentLogsUrl": "https://github.com/user/repo/actions", "pathMapping": [ { "contentType": "AnalyticRules", @@ -37,6 +39,14 @@ } ] } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" } } } diff --git a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControls.json b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControls.json index 09f419a6d226..28be95f55540 100644 --- a/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControls.json +++ b/specification/securityinsights/resource-manager/Microsoft.SecurityInsights/preview/2021-09-01-preview/examples/sourcecontrols/GetSourceControls.json @@ -16,7 +16,7 @@ "type": "Microsoft.SecurityInsights/SourceControls", "etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"", "properties": { - "sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a", + "id": "789e0c1f-4a3d-43ad-809c-e713b677b04a", "displayName": "My Source Control", "description": "this is a source control", "repoType": "Github", @@ -27,6 +27,8 @@ "repository": { "url": "https://github.com/user/repo", "branch": "master", + "displayUrl": "https://github.com/user/repo", + "deploymentLogsUrl": "https://github.com/user/repo/actions", "pathMapping": [ { "contentType": "AnalyticRules", @@ -38,6 +40,14 @@ } ] } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2021-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2021-01-02T17:18:19.1234567Z" } } ]