-
Notifications
You must be signed in to change notification settings - Fork 5.2k
/
Copy pathVirtualMachineExtensionImage.tsp
96 lines (85 loc) · 3.26 KB
/
VirtualMachineExtensionImage.tsp
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
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;
namespace Microsoft.Compute;
/**
* Describes a Virtual Machine Extension Image.
*/
model VirtualMachineExtensionImage
is Azure.ResourceManager.TrackedResource<VirtualMachineExtensionImageProperties> {
...ResourceNameParameter<
Resource = VirtualMachineExtensionImage,
KeyName = "type",
SegmentName = "types",
NamePattern = ""
>;
}
alias ImageTypePath = {
...ApiVersionParameter;
...SubscriptionIdParameter;
...LocationParameter;
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@path @segment("publishers") publisherName: string;
};
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator"
interface VirtualMachineExtensionImageOps
extends Azure.ResourceManager.Legacy.LegacyOperations<
ImageTypePath & KeysOf<VirtualMachineExtensionImage>,
{
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@path @segment("versions") version: string,
}
> {}
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator"
interface VirtualMachineExtensionImageTypeOps
extends Azure.ResourceManager.Legacy.LegacyOperations<
ImageTypePath,
KeysOf<VirtualMachineExtensionImage>
> {}
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator"
interface VirtualMachineExtensionImages {
/**
* Gets a virtual machine extension image.
*/
@route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}")
get is VirtualMachineExtensionImageOps.ReadRoute<VirtualMachineExtensionImage>;
/**
* Gets a list of virtual machine extension image types.
*/
@route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types")
listTypes is VirtualMachineExtensionImageTypeOps.ListRoute<
VirtualMachineExtensionImage,
Response = ArmResponse<VirtualMachineExtensionImage[]>
>;
/**
* Gets a list of virtual machine extension image versions.
*/
@route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions")
listVersions is VirtualMachineExtensionImageOps.ListRoute<
VirtualMachineExtensionImage,
Response = ArmResponse<VirtualMachineExtensionImage[]>,
Parameters = {
/**
* The filter to apply on the operation.
*/
@query("$filter")
$filter?: string;
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@query("$top")
$top?: int32;
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@query("$orderby")
$orderby?: string;
}
>;
}
@@doc(VirtualMachineExtensionImage.name, "");
@@doc(VirtualMachineExtensionImage.properties,
"Describes the properties of a Virtual Machine Extension Image."
);