-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathWorkspaceManagerConfiguration.tsp
More file actions
107 lines (96 loc) · 3 KB
/
Copy pathWorkspaceManagerConfiguration.tsp
File metadata and controls
107 lines (96 loc) · 3 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "@typespec/rest";
import "./models.tsp";
using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;
namespace Microsoft.SecurityInsights;
/**
* The workspace manager configuration
*/
model WorkspaceManagerConfiguration
is Azure.ResourceManager.ProxyResource<WorkspaceManagerConfigurationProperties> {
...ResourceNameParameter<
Resource = WorkspaceManagerConfiguration,
KeyName = "workspaceManagerConfigurationName",
SegmentName = "workspaceManagerConfigurations",
NamePattern = "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$"
>;
/**
* Resource Etag.
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details"
@visibility(Lifecycle.Read)
etag?: string;
}
@armResourceOperations(#{ omitTags: true })
interface WorkspaceManagerConfigurations {
/**
* Gets a workspace manager configuration
*/
@tag("workspaceManagerConfigurations")
get is Extension.Read<
workspaceExternalResource,
WorkspaceManagerConfiguration
>;
/**
* Creates or updates a workspace manager configuration.
*/
@tag("workspaceManagerConfigurations")
createOrUpdate is Extension.CreateOrReplaceSync<
workspaceExternalResource,
WorkspaceManagerConfiguration
>;
/**
* Deletes a workspace manager configuration
*/
@tag("workspaceManagerConfigurations")
delete is Extension.DeleteSync<
workspaceExternalResource,
WorkspaceManagerConfiguration
>;
/**
* Gets all workspace manager configurations for a Sentinel workspace.
*/
@tag("workspaceManagerConfigurations")
list is Extension.ListByTarget<
workspaceExternalResource,
WorkspaceManagerConfiguration,
Parameters = {
/**
* Sorts the results. Optional.
*/
@query("$orderby")
$orderby?: string;
/**
* Returns only the first n results. Optional.
*/
@query("$top")
$top?: int32;
/**
* Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.
*/
@query("$skipToken")
$skipToken?: string;
},
Response = ArmResponse<WorkspaceManagerConfigurationList>
>;
}
@@doc(
WorkspaceManagerConfiguration.name,
"The name of the workspace manager configuration"
);
@@doc(
WorkspaceManagerConfiguration.properties,
"The workspace manager configuration object"
);
@@doc(
WorkspaceManagerConfigurations.createOrUpdate::parameters.resource,
"The workspace manager configuration"
);
@@added(WorkspaceManagerConfiguration, Versions.v2025_10_01_preview);
@@added(WorkspaceManagerConfigurations, Versions.v2025_10_01_preview);