Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bookmark relations API #8495

Merged
merged 12 commits into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BookmarkRelationList"
"$ref": "#/definitions/RelationList"
}
},
"default": {
Expand All @@ -1437,7 +1437,7 @@
}
}
},
"x-ms-odata": "#/definitions/BookmarkRelation",
"x-ms-odata": "#/definitions/Relation",
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down Expand Up @@ -1533,7 +1533,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BookmarkRelation"
"$ref": "#/definitions/Relation"
}
},
"default": {
Expand Down Expand Up @@ -1578,20 +1578,20 @@
"$ref": "#/parameters/RelationName"
},
{
"$ref": "#/parameters/RelationInputModel"
"$ref": "#/parameters/Relation"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BookmarkRelation"
"$ref": "#/definitions/Relation"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/BookmarkRelation"
"$ref": "#/definitions/Relation"
}
},
"default": {
Expand Down Expand Up @@ -4051,73 +4051,6 @@
"bookmarkId"
]
},
"BookmarkRelationList": {
"description": "List of bookmark relations.",
"properties": {
"nextLink": {
"readOnly": true,
"description": "URL to fetch the next set of relations.",
"type": "string"
},
"value": {
"description": "Array of relations.",
"type": "array",
"items": {
"$ref": "#/definitions/BookmarkRelation"
}
}
},
"required": [
"value"
]
},
"BookmarkRelation": {
"type": "object",
"description": "Represents a bookmark relation",
"allOf": [
{
"$ref": "#/definitions/RelationBase"
}
],
"properties": {
"properties": {
"x-ms-client-flatten": true,
"description": "Bookmark relation properties",
"$ref": "#/definitions/BookmarkRelationProperties"
}
}
},
"BookmarkRelationProperties": {
"type": "object",
"description": "Bookmark relation properties",
"properties": {
"relationName": {
"type": "string",
"description": "Name of relation"
},
"bookmarkId": {
"type": "string",
"description": "The case related bookmark id"
},
"caseIdentifier": {
"type": "string",
"description": "The case identifier"
},
"caseTitle": {
"type": "string",
"description": "The case title"
},
"caseSeverity": {
"type": "string",
"description": "The case severity"
}
},
"required": [
"relationName",
"caseIdentifier",
"bookmarkId"
]
},
"RelationsModelInput": {
"type": "object",
"description": "Relation input model",
Expand Down Expand Up @@ -7041,6 +6974,7 @@
},
"relatedResourceName": {
"description": "The name of the related resource",
"readOnly": true,
"type": "string"
},
"relatedResourceType": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,9 @@
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
"bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"relationInputModel": {
"relation": {
"properties": {
"sourceRelationNode": {
"relationNodeId": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"relationNodeKind": "Case"
},
"targetRelationNode": {
"relationNodeId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"relationNodeKind": "Bookmark"
}
"relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812"
}
}
},
Expand All @@ -26,14 +19,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
"kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
"relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"caseTitle": "Test case",
"caseSeverity": "High"
"relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
},
Expand All @@ -42,14 +32,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
"kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
"relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"caseTitle": "Test case",
"caseSeverity": "High"
"relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
"kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
"bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"caseTitle": "Test case",
"caseSeverity": "High",
"relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"
"relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/bookmarks/2216d0e1-91e3-4902-89fd-d2df8c535096/relations/4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"name": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
"type": "Microsoft.SecurityInsights/bookmarks/relations",
"kind": "CasesToBookmarks",
"etag": "190057d0-0000-0d00-0000-5c6f5adb0000",
"properties": {
"bookmarkId": "2216d0e1-91e3-4902-89fd-d2df8c535096",
"caseIdentifier": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"caseTitle": "Test case",
"caseSeverity": "High",
"relationName": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014"
"relatedResourceId": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalIinsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/incidents/afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceName": "afbd324f-6c48-459c-8710-8d1e1cd03812",
"relatedResourceType": "Microsoft.SecurityInsights/incidents"
}
}
}
Expand Down