-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Expand file tree
/
Copy pathmodels.tsp
More file actions
902 lines (695 loc) · 23.8 KB
/
models.tsp
File metadata and controls
902 lines (695 loc) · 23.8 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
import "@typespec/rest";
import "@typespec/http";
import "@typespec/openapi";
import "@azure-tools/typespec-azure-resource-manager";
using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Azure.ResourceManager;
namespace Microsoft.ScVmm;
interface Operations extends Azure.ResourceManager.Operations {}
alias VmmServerId = ResourceIdentifier<[
{
type: "Microsoft.ScVmm/vmmServers";
}
]>;
alias VirtualNetworkId = ResourceIdentifier<[
{
type: "Microsoft.ScVmm/virtualNetwork";
}
]>;
/** A reusable query option to force delete a resource. */
model QueryForceDelete {
/** Forces the resource to be deleted. */
@query("force")
force?: boolean;
}
/** The provisioning state of the resource. */
enum ResourceProvisioningState {
...Azure.ResourceManager.ResourceProvisioningState,
/** The resource is provisioning. */
Provisioning,
/** The resource is updating. */
Updating,
/** The resource is being deleted. */
Deleting,
/** The resource has been accepted. */
Accepted,
/** The resource was created. */
Created,
}
/** Virtual machine operating system type. */
enum OsType {
/** Windows operating system. */
Windows,
/** Linux operating system. */
Linux,
/** Other operating system. */
Other,
}
/** Network address allocation method. */
enum AllocationMethod {
/** Dynamically allocated address. */
Dynamic,
/** Statically allocated address. */
Static,
}
/** Guest agent provisioning action. */
enum ProvisioningAction {
/** Install guest agent. */
install,
/** Uninstall guest agent. */
uninstall,
/** Repair guest agent. */
repair,
}
/** Limit CPU for migration. */
enum LimitCpuForMigration {
/** Enable limit CPU for migration. */
`true`,
/** Disable limit CPU for migration. */
`false`,
}
/** Dynamic memory enabled. */
enum DynamicMemoryEnabled {
/** Enable dynamic memory. */
`true`,
/** Disable dynamic memory. */
`false`,
}
/** Highly available. */
enum IsHighlyAvailable {
/** Enable highly available. */
`true`,
/** Disable highly available. */
`false`,
}
/** Create diff disk. */
enum CreateDiffDisk {
/** Enable create diff disk. */
`true`,
/** Disable create diff disk. */
`false`,
}
/** Customizable. */
enum IsCustomizable {
/** Enable customizable. */
`true`,
/** Disable customizable. */
`false`,
}
/** Skip shutdown. */
enum SkipShutdown {
/** Enable skip shutdown. */
`true`,
/** Disable skip shutdown. */
`false`,
}
/** Defines the resource properties. */
model VmmServerProperties {
/** Credentials to connect to VmmServer. */
credentials?: VmmCredential;
/** Fqdn is the hostname/ip of the vmmServer. */
@minLength(1)
fqdn: string;
/** Port is the port on which the vmmServer is listening. */
@minValue(1)
@maxValue(65535)
port?: int32;
/** Gets the connection status to the vmmServer. */
@visibility("read")
connectionStatus?: string;
/** Gets any error message if connection to vmmServer is having any issue. */
@visibility("read")
errorMessage?: string;
/** Unique ID of vmmServer. */
@visibility("read")
uuid?: string;
/** Version is the version of the vmmSever. */
@visibility("read")
version?: string;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Credentials to connect to VmmServer. */
model VmmCredential {
/** Username to use to connect to VmmServer. */
username?: string;
/** Password to use to connect to VmmServer. */
@visibility("create", "update")
@secret
password?: string;
}
/** The extended location. */
model ExtendedLocation {
/** The extended location type. */
type?: string;
/** The extended location name. */
name?: string;
}
/** Defines the resource properties. */
model CloudProperties {
/** Gets or sets the inventory Item ID for the resource. */
inventoryItemId?: string;
/** Unique ID of the cloud. */
@minLength(1)
uuid?: string;
/** ARM Id of the vmmServer resource in which this resource resides. */
vmmServerId?: VmmServerId;
/** Name of the cloud in VmmServer. */
@visibility("read")
cloudName?: string;
/** Capacity of the cloud. */
@visibility("read")
cloudCapacity?: CloudCapacity;
/** List of QoS policies available for the cloud. */
@visibility("read")
@projectedName("json", "storageQoSPolicies")
storageQosPolicies?: StorageQosPolicy[];
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Cloud Capacity model */
model CloudCapacity {
/** CPUCount specifies the maximum number of CPUs that can be allocated in the cloud. */
@visibility("read") cpuCount?: int64;
/** MemoryMB specifies a memory usage limit in megabytes. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
@visibility("read") memoryMB?: int64;
/** VMCount gives the max number of VMs that can be deployed in the cloud. */
@visibility("read") vmCount?: int64;
}
/** The StorageQoSPolicy definition. */
model StorageQosPolicy {
/** The name of the policy. */
name?: string;
/** The ID of the QoS policy. */
id?: string;
/** The maximum IO operations per second. */
iopsMaximum?: int64;
/** The minimum IO operations per second. */
iopsMinimum?: int64;
/** The Bandwidth Limit for internet traffic. */
bandwidthLimit?: int64;
/** The underlying policy. */
policyId?: string;
}
/** Defines the resource properties. */
model VirtualNetworkProperties {
/** Gets or sets the inventory Item ID for the resource. */
inventoryItemId?: string;
/** Unique ID of the virtual network. */
@minLength(1)
uuid?: string;
/** ARM Id of the vmmServer resource in which this resource resides. */
vmmServerId?: VmmServerId;
/** Name of the virtual network in vmmServer. */
@visibility("read")
networkName?: string;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Defines the resource properties. */
model VirtualMachineTemplateProperties {
/** Gets or sets the inventory Item ID for the resource. */
inventoryItemId?: string;
/** Unique ID of the virtual machine template. */
@minLength(1)
uuid?: string;
/** ARM Id of the vmmServer resource in which this resource resides. */
vmmServerId?: VmmServerId;
/** Gets the type of the os. */
@visibility("read")
osType?: OsType;
/** Gets os name. */
@visibility("read")
osName?: string;
/** Gets computer name. */
@visibility("read")
computerName?: string;
/** MemoryMB is the desired size of a virtual machine's memory, in MB. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
@visibility("read")
memoryMB?: int32;
/** Gets the desired number of vCPUs for the vm. */
@visibility("read")
cpuCount?: int32;
/** Gets a value indicating whether to enable processor compatibility mode for live migration of VMs. */
@visibility("read")
limitCpuForMigration?: LimitCpuForMigration;
/** Gets a value indicating whether to enable dynamic memory or not. */
@visibility("read")
dynamicMemoryEnabled?: DynamicMemoryEnabled;
/** Gets a value indicating whether the vm template is customizable or not. */
@visibility("read")
isCustomizable?: IsCustomizable;
/** Gets the max dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
@visibility("read")
dynamicMemoryMaxMB?: int32;
/** Gets the min dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
@visibility("read")
dynamicMemoryMinMB?: int32;
/** Gets highly available property. */
@visibility("read")
isHighlyAvailable?: IsHighlyAvailable;
/** Gets the generation for the vm. */
@visibility("read")
generation?: int32;
/** Gets the network interfaces of the template. */
@visibility("read")
@extension("x-ms-identifiers", ["name", "nicId"])
networkInterfaces?: NetworkInterface[];
/** Gets the disks of the template. */
@visibility("read")
@extension("x-ms-identifiers", ["diskId", "name"])
disks?: VirtualDisk[];
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Network Interface model */
model NetworkInterface {
/** Gets or sets the name of the network interface. */
name?: string;
/** Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set. */
@visibility("read")
displayName?: string;
/** Gets the nic ipv4 addresses. */
@visibility("read")
ipv4Addresses?: string[];
/** Gets the nic ipv6 addresses. */
@visibility("read")
ipv6Addresses?: string[];
/** Gets or sets the nic MAC address. */
macAddress?: string;
/** Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic. */
virtualNetworkId?: VirtualNetworkId;
/** Gets the name of the virtual network in vmmServer that the nic is connected to. */
@visibility("read")
networkName?: string;
/** Gets or sets the ipv4 address type. */
ipv4AddressType?: AllocationMethod;
/** Gets or sets the ipv6 address type. */
ipv6AddressType?: AllocationMethod;
/** Gets or sets the mac address type. */
macAddressType?: AllocationMethod;
/** Gets or sets the nic id. */
nicId?: string;
}
/** Network Interface Update model */
model NetworkInterfaceUpdate is UpdateableProperties<NetworkInterface> {}
/** Virtual disk model */
model VirtualDisk {
/** Gets or sets the name of the disk. */
name?: string;
/** Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set. */
@visibility("read")
displayName?: string;
/** Gets or sets the disk id. */
diskId?: string;
/** Gets or sets the disk total size. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "GB is distinct from Gb"
diskSizeGB?: int32;
/** Gets the max disk size. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "GB is distinct from Gb"
@visibility("read")
maxDiskSizeGB?: int32;
/** Gets or sets the disk bus. */
bus?: int32;
/** Gets or sets the disk lun. */
lun?: int32;
/** Gets or sets the disk bus type. */
busType?: string;
/** Gets or sets the disk vhd type. */
vhdType?: string;
/** Gets the disk volume type. */
@visibility("read")
volumeType?: string;
/** Gets the disk vhd format type. */
@visibility("read")
vhdFormatType?: string;
/** Gets or sets the disk id in the template. */
@visibility("read", "create")
templateDiskId?: string;
/** The QoS policy for the disk. */
@projectedName("json", "storageQoSPolicy")
storageQosPolicy?: StorageQosPolicyDetails;
/** Gets or sets a value indicating diff disk. */
@visibility("read", "create")
createDiffDisk?: CreateDiffDisk;
}
/** Virtual Disk Update model */
model VirtualDiskUpdate is UpdateableProperties<VirtualDisk> {}
/** The StorageQoSPolicyDetails definition. */
model StorageQosPolicyDetails {
/** The name of the policy. */
name?: string;
/** The ID of the QoS policy. */
id?: string;
}
/** Defines the resource properties. */
model AvailabilitySetProperties {
/** Name of the availability set. */
@minLength(1)
availabilitySetName?: string;
/** ARM Id of the vmmServer resource in which this resource resides. */
vmmServerId?: VmmServerId;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** The inventory type */
enum InventoryType {
/** Cloud inventory type */
Cloud: "Cloud",
/** VirtualNetwork inventory type */
VirtualNetwork: "VirtualNetwork",
/** VirtualMachine inventory type */
VirtualMachine: "VirtualMachine",
/** VirtualMachineTemplate inventory type */
VirtualMachineTemplate: "VirtualMachineTemplate",
}
/** Defines the resource properties. */
@discriminator("inventoryType")
model InventoryItemProperties {
/** They inventory type. */
inventoryType: InventoryType;
/** Gets the tracked resource id corresponding to the inventory resource. */
@visibility("read")
managedResourceId?: string;
/** Gets the UUID (which is assigned by Vmm) for the inventory item. */
@visibility("read")
uuid?: string;
/** Gets the Managed Object name in Vmm for the inventory item. */
@visibility("read")
inventoryItemName?: string;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Defines the resource properties. */
model VirtualMachineInstanceProperties {
/** Availability Sets in vm. */
availabilitySets?: AvailabilitySetListItem[];
/** OS properties. */
@visibility("read", "create")
osProfile?: OsProfileForVmInstance;
/** Hardware properties. */
hardwareProfile?: HardwareProfile;
/** Network properties. */
networkProfile?: NetworkProfile;
/** Storage properties. */
storageProfile?: StorageProfile;
/** Gets the infrastructure profile. */
infrastructureProfile?: InfrastructureProfile;
/** Gets the power state of the virtual machine. */
@visibility("read")
powerState?: string;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Virtual Machine Instance Properties Update model */
model VirtualMachineInstanceUpdateProperties is UpdateableProperties<OmitProperties<VirtualMachineInstanceProperties,"hardwareProfile" | "networkProfile" | "storageProfile" | "infrastructureProfile">> {
/** Hardware properties. */
hardwareProfile?: HardwareProfileUpdate;
/** Network properties. */
networkProfile?: NetworkProfileUpdate;
/** Storage properties. */
storageProfile?: StorageProfileUpdate;
/** Gets the infrastructure profile. */
infrastructureProfile?: InfrastructureProfileUpdate;
}
/** Availability Set model */
model AvailabilitySetListItem {
/** Gets the ARM Id of the microsoft.scvmm/availabilitySets resource. */
id?: ResourceIdentifier<[
{
type: "Microsoft.ScVmm/availabilitySets";
}
]>;
/** Gets or sets the name of the availability set. */
name?: string;
}
/** Defines the resource properties. */
model OsProfileForVmInstance {
/** Admin password of the virtual machine. */
@visibility("create", "update")
@secret
adminPassword?: string;
/** Gets or sets computer name. */
computerName?: string;
/** Gets the type of the os. */
@visibility("read")
osType?: OsType;
/** Gets os sku. */
@visibility("read")
osSku?: string;
/** Gets os version. */
@visibility("read")
osVersion?: string;
}
/** Defines the resource properties. */
model HardwareProfile {
/** MemoryMB is the size of a virtual machine's memory, in MB. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
memoryMB?: int32;
/** Gets or sets the number of vCPUs for the vm. */
cpuCount?: int32;
/** Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs. */
limitCpuForMigration?: LimitCpuForMigration;
/** Gets or sets a value indicating whether to enable dynamic memory or not. */
dynamicMemoryEnabled?: DynamicMemoryEnabled;
/** Gets or sets the max dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
dynamicMemoryMaxMB?: int32;
/** Gets or sets the min dynamic memory for the vm. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
dynamicMemoryMinMB?: int32;
/** Gets highly available property. */
@visibility("read")
isHighlyAvailable?: IsHighlyAvailable;
}
/** Defines the resource update properties. */
model HardwareProfileUpdate is UpdateableProperties<HardwareProfile> {}
/** Defines the resource properties. */
model NetworkProfile {
/** Gets or sets the list of network interfaces associated with the virtual machine. */
@extension("x-ms-identifiers", ["name", "nicId"])
networkInterfaces?: NetworkInterface[];
}
/** Defines the resource update properties. */
model NetworkProfileUpdate is UpdateableProperties<OmitProperties<NetworkProfile, "networkInterfaces">> {
/** Gets or sets the list of network interfaces associated with the virtual machine. */
@extension("x-ms-identifiers", ["name", "nicId"])
networkInterfaces?: NetworkInterfaceUpdate[];
}
/** Defines the resource properties. */
model StorageProfile {
/** Gets or sets the list of virtual disks associated with the virtual machine. */
@extension("x-ms-identifiers", ["diskId", "name"])
disks?: VirtualDisk[];
}
/** Defines the resource update properties. */
model StorageProfileUpdate is UpdateableProperties<OmitProperties<StorageProfile, "disks">> {
/** Gets or sets the list of virtual disks associated with the virtual machine. */
@extension("x-ms-identifiers", ["diskId", "name"])
disks?: VirtualDiskUpdate[];
}
/** Specifies the vmmServer infrastructure specific settings for the virtual machine instance. */
model InfrastructureProfile {
/** Gets or sets the inventory Item ID for the resource. */
@visibility("read", "create")
inventoryItemId?: string;
/** ARM Id of the vmmServer resource in which this resource resides. */
@visibility("read", "create")
vmmServerId?: VmmServerId;
/** ARM Id of the cloud resource to use for deploying the vm. */
@visibility("read", "create")
cloudId?: ResourceIdentifier<[
{
type: "Microsoft.ScVmm/clouds";
}
]>;
/** ARM Id of the template resource to use for deploying the vm. */
@visibility("read", "create")
templateId?: ResourceIdentifier<[
{
type: "Microsoft.ScVmm/virtualMachineTemplates";
}
]>;
/** VMName is the name of VM on the SCVmm server. */
@minLength(1)
@visibility("read", "create")
vmName?: string;
/** Unique ID of the virtual machine. */
@visibility("read", "create")
uuid?: string;
/** Last restored checkpoint in the vm. */
@visibility("read")
@projectedName("json", "lastRestoredVMCheckpoint")
lastRestoredVmCheckpoint?: Checkpoint;
/** Checkpoints in the vm. */
@visibility("read")
#suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "Workaround for emitter problem"
@extension("x-ms-identifiers", ["checkpointID"])
checkpoints?: Checkpoint[];
/** Type of checkpoint supported for the vm. */
@visibility("read", "create", "update")
checkpointType?: string;
/** Gets or sets the generation for the vm. */
@visibility("read", "create")
generation?: int32;
/** Gets or sets the bios guid for the vm. */
@visibility("read", "create")
biosGuid?: string;
}
/** Specifies the vmmServer infrastructure specific update settings for the virtual machine instance. */
model InfrastructureProfileUpdate is UpdateableProperties<InfrastructureProfile> {}
/** Defines the resource properties. */
model Checkpoint {
/** Gets ID of parent of the checkpoint. */
@projectedName("json", "parentCheckpointID")
parentCheckpointId?: string;
/** Gets ID of the checkpoint. */
@projectedName("json", "checkpointID")
checkpointId?: string;
/** Gets name of the checkpoint. */
name?: string;
/** Gets description of the checkpoint. */
description?: string;
}
/** Defines the stop action properties. */
model StopVirtualMachineOptions {
/** Gets or sets a value indicating whether to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Defaults to false. */
skipShutdown?: SkipShutdown = SkipShutdown.`false`;
}
/** Describes the properties of Hybrid Identity Metadata for a Virtual Machine. */
model VmInstanceHybridIdentityMetadataProperties {
/** The unique identifier for the resource. */
resourceUid?: string;
/** Gets or sets the Public Key. */
publicKey?: string;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Defines the create checkpoint action properties. */
model VirtualMachineCreateCheckpoint {
/** Name of the checkpoint. */
name?: string;
/** Description of the checkpoint. */
description?: string;
}
/** Defines the delete checkpoint action properties. */
model VirtualMachineDeleteCheckpoint {
/** ID of the checkpoint to be deleted. */
id?: string;
}
/** Defines the restore checkpoint action properties. */
model VirtualMachineRestoreCheckpoint {
/** ID of the checkpoint to be restored to. */
id?: string;
}
/** Defines the resource properties. */
model GuestAgentProperties {
/** Gets a unique identifier for this resource. */
@visibility("read")
uuid?: string;
/** Username / Password Credentials to provision guest agent. */
credentials?: GuestCredential;
/** HTTP Proxy configuration for the VM. */
httpProxyConfig?: HttpProxyConfiguration;
/** Gets or sets the guest agent provisioning action. */
provisioningAction?: ProvisioningAction;
/** Gets the guest agent status. */
@visibility("read")
status?: string;
/** Gets the name of the corresponding resource in Kubernetes. */
@visibility("read")
customResourceName?: string;
/** Provisioning state of the resource. */
@visibility("read")
provisioningState?: Microsoft.ScVmm.ResourceProvisioningState;
}
/** Username / Password Credentials to connect to guest. */
model GuestCredential {
/** Gets or sets username to connect with the guest. */
username: string;
/** Gets or sets the password to connect with the guest. */
@visibility("create", "update")
@secret
password: string;
}
/** HTTP Proxy configuration for the VM. */
model HttpProxyConfiguration {
/** Gets or sets httpsProxy url. */
httpsProxy?: string;
}
/** Defines the resource properties. */
model InventoryItemDetails {
/** Gets or sets the inventory Item ID for the resource. */
inventoryItemId?: string;
/** Gets or sets the Managed Object name in Vmm for the resource. */
inventoryItemName?: string;
}
/** The Cloud inventory item. */
model CloudInventoryItem extends InventoryItemProperties {
/** They inventory type. */
inventoryType: InventoryType.Cloud;
}
/** The Virtual network inventory item. */
model VirtualNetworkInventoryItem extends InventoryItemProperties {
/** They inventory type. */
inventoryType: InventoryType.VirtualNetwork;
}
/** The Virtual machine template inventory item. */
model VirtualMachineTemplateInventoryItem extends InventoryItemProperties {
/** Gets the desired number of vCPUs for the vm. */
@visibility("read")
cpuCount?: int32;
/** MemoryMB is the desired size of a virtual machine's memory, in MB. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb"
@visibility("read")
memoryMB?: int32;
/** Gets the type of the os. */
@visibility("read")
osType?: OsType;
/** Gets os name. */
@visibility("read")
osName?: string;
/** They inventory type. */
inventoryType: InventoryType.VirtualMachineTemplate;
}
/** The Virtual machine inventory item. */
model VirtualMachineInventoryItem extends InventoryItemProperties {
/** Gets the type of the os. */
@visibility("read")
osType?: OsType;
/** Gets os name. */
@visibility("read")
osName?: string;
/** Gets os version. */
@visibility("read")
osVersion?: string;
/** Gets the power state of the virtual machine. */
@visibility("read")
powerState?: string;
/** Gets or sets the nic ip addresses. */
ipAddresses?: string[];
/** Cloud inventory resource details where the VM is present. */
cloud?: InventoryItemDetails;
/** Gets the bios guid. */
@visibility("read")
biosGuid?: string;
/** Gets the tracked resource id corresponding to the inventory resource. */
@visibility("read")
managedMachineResourceId?: ResourceIdentifier<[]>;
/** They inventory type. */
inventoryType: InventoryType.VirtualMachine;
}