-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathBookmark.tsp
More file actions
88 lines (79 loc) · 2.01 KB
/
Copy pathBookmark.tsp
File metadata and controls
88 lines (79 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
import "./VirtualResource.tsp";
using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;
namespace Microsoft.SecurityInsights;
/**
* Represents a bookmark in Azure Security Insights.
*/
model Bookmark is Azure.ResourceManager.ProxyResource<BookmarkProperties> {
...ResourceNameParameter<
Resource = Bookmark,
KeyName = "bookmarkId",
SegmentName = "bookmarks",
NamePattern = ""
>;
/**
* Etag of the azure resource
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
etag?: string;
}
@armResourceOperations(#{ omitTags: true })
interface Bookmarks {
/**
* Gets a bookmark.
*/
@tag("Bookmarks")
get is Extension.Read<OperationalInsights, Bookmark, Error = CloudError>;
/**
* Creates or updates the bookmark.
*/
@tag("Bookmarks")
createOrUpdate is Extension.CreateOrReplaceSync<
OperationalInsights,
Bookmark,
Error = CloudError
>;
/**
* Delete the bookmark.
*/
@tag("Bookmarks")
delete is Extension.DeleteSync<
OperationalInsights,
Bookmark,
Error = CloudError
>;
/**
* Gets all bookmarks.
*/
@tag("Bookmarks")
list is Extension.ListByTarget<
OperationalInsights,
Bookmark,
Response = ArmResponse<BookmarkList>,
Error = CloudError
>;
/**
* Expand an bookmark
*/
@tag("Bookmark")
@added(Versions.v2025_10_01_preview)
expand is Extension.ActionSync<
OperationalInsights,
Bookmark,
BookmarkExpandParameters,
ArmResponse<BookmarkExpandResponse>,
Error = CloudError
>;
}
@@doc(Bookmark.name, "Bookmark ID");
@@doc(Bookmark.properties, "Bookmark properties");
@@doc(Bookmarks.createOrUpdate::parameters.resource, "The bookmark");