-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Expand file tree
/
Copy pathGuestAgent.tsp
More file actions
41 lines (38 loc) · 1.21 KB
/
GuestAgent.tsp
File metadata and controls
41 lines (38 loc) · 1.21 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
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/rest";
import "./models.tsp";
import "./VirtualMachineInstance.tsp";
using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
namespace Microsoft.ScVmm;
/** Defines the GuestAgent. */
@parentResource(VirtualMachineInstance)
@singleton
model GuestAgent is ProxyResource<GuestAgentProperties> {
/** Name of the guest agent. */
@key("guestAgentName")
@segment("guestAgents")
@visibility("read")
@maxLength(54)
@minLength(1)
@pattern("[a-zA-Z0-9-_\\.]")
@path
name: string;
}
@armResourceOperations
interface GuestAgents {
/** Implements GuestAgent GET method. */
@summary("Gets GuestAgent.")
get is ArmResourceRead<GuestAgent>;
/** Create Or Update GuestAgent. */
@summary("Implements GuestAgent PUT method.")
create is ArmResourceCreateOrReplaceAsync<GuestAgent>;
/** Implements GuestAgent DELETE method. */
@summary("Deletes a GuestAgent resource.")
delete is ArmResourceDeleteSync<GuestAgent>;
/** Returns the list of GuestAgent of the given vm. */
@summary("Implements GET GuestAgent in a vm.")
listByVirtualMachineInstance is ArmResourceListByParent<GuestAgent>;
}