pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.13.0a1736849827__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. pulumi_vsphere/__init__.py +28 -0
  2. pulumi_vsphere/_inputs.py +1816 -277
  3. pulumi_vsphere/_utilities.py +41 -5
  4. pulumi_vsphere/compute_cluster.py +937 -1488
  5. pulumi_vsphere/compute_cluster_host_group.py +67 -2
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
  9. pulumi_vsphere/compute_cluster_vm_group.py +198 -2
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
  11. pulumi_vsphere/config/__init__.pyi +5 -0
  12. pulumi_vsphere/config/vars.py +5 -0
  13. pulumi_vsphere/content_library.py +113 -12
  14. pulumi_vsphere/content_library_item.py +143 -2
  15. pulumi_vsphere/custom_attribute.py +77 -2
  16. pulumi_vsphere/datacenter.py +48 -40
  17. pulumi_vsphere/datastore_cluster.py +217 -366
  18. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
  19. pulumi_vsphere/distributed_port_group.py +416 -189
  20. pulumi_vsphere/distributed_virtual_switch.py +571 -830
  21. pulumi_vsphere/dpm_host_override.py +63 -2
  22. pulumi_vsphere/drs_vm_override.py +67 -2
  23. pulumi_vsphere/entity_permissions.py +64 -38
  24. pulumi_vsphere/file.py +21 -24
  25. pulumi_vsphere/folder.py +148 -30
  26. pulumi_vsphere/get_compute_cluster.py +16 -9
  27. pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
  28. pulumi_vsphere/get_content_library.py +23 -15
  29. pulumi_vsphere/get_content_library_item.py +29 -13
  30. pulumi_vsphere/get_custom_attribute.py +14 -9
  31. pulumi_vsphere/get_datacenter.py +30 -12
  32. pulumi_vsphere/get_datastore.py +29 -21
  33. pulumi_vsphere/get_datastore_cluster.py +31 -10
  34. pulumi_vsphere/get_datastore_stats.py +63 -57
  35. pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
  36. pulumi_vsphere/get_dynamic.py +35 -25
  37. pulumi_vsphere/get_folder.py +23 -11
  38. pulumi_vsphere/get_guest_os_customization.py +26 -52
  39. pulumi_vsphere/get_host.py +16 -9
  40. pulumi_vsphere/get_host_base_images.py +104 -0
  41. pulumi_vsphere/get_host_pci_device.py +28 -19
  42. pulumi_vsphere/get_host_thumbprint.py +41 -25
  43. pulumi_vsphere/get_host_vgpu_profile.py +20 -15
  44. pulumi_vsphere/get_license.py +20 -10
  45. pulumi_vsphere/get_network.py +80 -24
  46. pulumi_vsphere/get_ovf_vm_template.py +56 -5
  47. pulumi_vsphere/get_policy.py +13 -9
  48. pulumi_vsphere/get_resource_pool.py +29 -23
  49. pulumi_vsphere/get_role.py +23 -13
  50. pulumi_vsphere/get_tag.py +16 -9
  51. pulumi_vsphere/get_tag_category.py +16 -9
  52. pulumi_vsphere/get_vapp_container.py +15 -9
  53. pulumi_vsphere/get_virtual_machine.py +205 -48
  54. pulumi_vsphere/get_vmfs_disks.py +18 -9
  55. pulumi_vsphere/guest_os_customization.py +60 -5
  56. pulumi_vsphere/ha_vm_override.py +352 -380
  57. pulumi_vsphere/host.py +244 -64
  58. pulumi_vsphere/host_port_group.py +27 -24
  59. pulumi_vsphere/host_virtual_switch.py +209 -289
  60. pulumi_vsphere/license.py +5 -32
  61. pulumi_vsphere/nas_datastore.py +74 -9
  62. pulumi_vsphere/offline_software_depot.py +185 -0
  63. pulumi_vsphere/outputs.py +717 -270
  64. pulumi_vsphere/provider.py +7 -6
  65. pulumi_vsphere/pulumi-plugin.json +2 -1
  66. pulumi_vsphere/resource_pool.py +168 -411
  67. pulumi_vsphere/role.py +33 -2
  68. pulumi_vsphere/storage_drs_vm_override.py +133 -2
  69. pulumi_vsphere/supervisor.py +967 -0
  70. pulumi_vsphere/tag.py +159 -2
  71. pulumi_vsphere/tag_category.py +83 -2
  72. pulumi_vsphere/vapp_container.py +163 -2
  73. pulumi_vsphere/vapp_entity.py +147 -2
  74. pulumi_vsphere/virtual_disk.py +123 -36
  75. pulumi_vsphere/virtual_machine.py +698 -829
  76. pulumi_vsphere/virtual_machine_class.py +447 -0
  77. pulumi_vsphere/virtual_machine_snapshot.py +13 -12
  78. pulumi_vsphere/vm_storage_policy.py +120 -127
  79. pulumi_vsphere/vmfs_datastore.py +271 -2
  80. pulumi_vsphere/vnic.py +104 -105
  81. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/METADATA +7 -6
  82. pulumi_vsphere-4.13.0a1736849827.dist-info/RECORD +86 -0
  83. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/WHEEL +1 -1
  84. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  85. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736849827.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,447 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['VirtualMachineClassArgs', 'VirtualMachineClass']
18
+
19
+ @pulumi.input_type
20
+ class VirtualMachineClassArgs:
21
+ def __init__(__self__, *,
22
+ cpus: pulumi.Input[int],
23
+ memory: pulumi.Input[int],
24
+ cpu_reservation: Optional[pulumi.Input[int]] = None,
25
+ memory_reservation: Optional[pulumi.Input[int]] = None,
26
+ name: Optional[pulumi.Input[str]] = None,
27
+ vgpu_devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
28
+ """
29
+ The set of arguments for constructing a VirtualMachineClass resource.
30
+ :param pulumi.Input[int] cpus: The number of CPUs.
31
+ :param pulumi.Input[int] memory: The amount of memory in MB.
32
+ :param pulumi.Input[int] cpu_reservation: The percentage of the available CPU capacity which will be reserved.
33
+ :param pulumi.Input[int] memory_reservation: The percentage of memory reservation.
34
+ :param pulumi.Input[str] name: The name for the class.
35
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] vgpu_devices: The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
36
+ """
37
+ pulumi.set(__self__, "cpus", cpus)
38
+ pulumi.set(__self__, "memory", memory)
39
+ if cpu_reservation is not None:
40
+ pulumi.set(__self__, "cpu_reservation", cpu_reservation)
41
+ if memory_reservation is not None:
42
+ pulumi.set(__self__, "memory_reservation", memory_reservation)
43
+ if name is not None:
44
+ pulumi.set(__self__, "name", name)
45
+ if vgpu_devices is not None:
46
+ pulumi.set(__self__, "vgpu_devices", vgpu_devices)
47
+
48
+ @property
49
+ @pulumi.getter
50
+ def cpus(self) -> pulumi.Input[int]:
51
+ """
52
+ The number of CPUs.
53
+ """
54
+ return pulumi.get(self, "cpus")
55
+
56
+ @cpus.setter
57
+ def cpus(self, value: pulumi.Input[int]):
58
+ pulumi.set(self, "cpus", value)
59
+
60
+ @property
61
+ @pulumi.getter
62
+ def memory(self) -> pulumi.Input[int]:
63
+ """
64
+ The amount of memory in MB.
65
+ """
66
+ return pulumi.get(self, "memory")
67
+
68
+ @memory.setter
69
+ def memory(self, value: pulumi.Input[int]):
70
+ pulumi.set(self, "memory", value)
71
+
72
+ @property
73
+ @pulumi.getter(name="cpuReservation")
74
+ def cpu_reservation(self) -> Optional[pulumi.Input[int]]:
75
+ """
76
+ The percentage of the available CPU capacity which will be reserved.
77
+ """
78
+ return pulumi.get(self, "cpu_reservation")
79
+
80
+ @cpu_reservation.setter
81
+ def cpu_reservation(self, value: Optional[pulumi.Input[int]]):
82
+ pulumi.set(self, "cpu_reservation", value)
83
+
84
+ @property
85
+ @pulumi.getter(name="memoryReservation")
86
+ def memory_reservation(self) -> Optional[pulumi.Input[int]]:
87
+ """
88
+ The percentage of memory reservation.
89
+ """
90
+ return pulumi.get(self, "memory_reservation")
91
+
92
+ @memory_reservation.setter
93
+ def memory_reservation(self, value: Optional[pulumi.Input[int]]):
94
+ pulumi.set(self, "memory_reservation", value)
95
+
96
+ @property
97
+ @pulumi.getter
98
+ def name(self) -> Optional[pulumi.Input[str]]:
99
+ """
100
+ The name for the class.
101
+ """
102
+ return pulumi.get(self, "name")
103
+
104
+ @name.setter
105
+ def name(self, value: Optional[pulumi.Input[str]]):
106
+ pulumi.set(self, "name", value)
107
+
108
+ @property
109
+ @pulumi.getter(name="vgpuDevices")
110
+ def vgpu_devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
111
+ """
112
+ The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
113
+ """
114
+ return pulumi.get(self, "vgpu_devices")
115
+
116
+ @vgpu_devices.setter
117
+ def vgpu_devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
118
+ pulumi.set(self, "vgpu_devices", value)
119
+
120
+
121
+ @pulumi.input_type
122
+ class _VirtualMachineClassState:
123
+ def __init__(__self__, *,
124
+ cpu_reservation: Optional[pulumi.Input[int]] = None,
125
+ cpus: Optional[pulumi.Input[int]] = None,
126
+ memory: Optional[pulumi.Input[int]] = None,
127
+ memory_reservation: Optional[pulumi.Input[int]] = None,
128
+ name: Optional[pulumi.Input[str]] = None,
129
+ vgpu_devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
130
+ """
131
+ Input properties used for looking up and filtering VirtualMachineClass resources.
132
+ :param pulumi.Input[int] cpu_reservation: The percentage of the available CPU capacity which will be reserved.
133
+ :param pulumi.Input[int] cpus: The number of CPUs.
134
+ :param pulumi.Input[int] memory: The amount of memory in MB.
135
+ :param pulumi.Input[int] memory_reservation: The percentage of memory reservation.
136
+ :param pulumi.Input[str] name: The name for the class.
137
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] vgpu_devices: The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
138
+ """
139
+ if cpu_reservation is not None:
140
+ pulumi.set(__self__, "cpu_reservation", cpu_reservation)
141
+ if cpus is not None:
142
+ pulumi.set(__self__, "cpus", cpus)
143
+ if memory is not None:
144
+ pulumi.set(__self__, "memory", memory)
145
+ if memory_reservation is not None:
146
+ pulumi.set(__self__, "memory_reservation", memory_reservation)
147
+ if name is not None:
148
+ pulumi.set(__self__, "name", name)
149
+ if vgpu_devices is not None:
150
+ pulumi.set(__self__, "vgpu_devices", vgpu_devices)
151
+
152
+ @property
153
+ @pulumi.getter(name="cpuReservation")
154
+ def cpu_reservation(self) -> Optional[pulumi.Input[int]]:
155
+ """
156
+ The percentage of the available CPU capacity which will be reserved.
157
+ """
158
+ return pulumi.get(self, "cpu_reservation")
159
+
160
+ @cpu_reservation.setter
161
+ def cpu_reservation(self, value: Optional[pulumi.Input[int]]):
162
+ pulumi.set(self, "cpu_reservation", value)
163
+
164
+ @property
165
+ @pulumi.getter
166
+ def cpus(self) -> Optional[pulumi.Input[int]]:
167
+ """
168
+ The number of CPUs.
169
+ """
170
+ return pulumi.get(self, "cpus")
171
+
172
+ @cpus.setter
173
+ def cpus(self, value: Optional[pulumi.Input[int]]):
174
+ pulumi.set(self, "cpus", value)
175
+
176
+ @property
177
+ @pulumi.getter
178
+ def memory(self) -> Optional[pulumi.Input[int]]:
179
+ """
180
+ The amount of memory in MB.
181
+ """
182
+ return pulumi.get(self, "memory")
183
+
184
+ @memory.setter
185
+ def memory(self, value: Optional[pulumi.Input[int]]):
186
+ pulumi.set(self, "memory", value)
187
+
188
+ @property
189
+ @pulumi.getter(name="memoryReservation")
190
+ def memory_reservation(self) -> Optional[pulumi.Input[int]]:
191
+ """
192
+ The percentage of memory reservation.
193
+ """
194
+ return pulumi.get(self, "memory_reservation")
195
+
196
+ @memory_reservation.setter
197
+ def memory_reservation(self, value: Optional[pulumi.Input[int]]):
198
+ pulumi.set(self, "memory_reservation", value)
199
+
200
+ @property
201
+ @pulumi.getter
202
+ def name(self) -> Optional[pulumi.Input[str]]:
203
+ """
204
+ The name for the class.
205
+ """
206
+ return pulumi.get(self, "name")
207
+
208
+ @name.setter
209
+ def name(self, value: Optional[pulumi.Input[str]]):
210
+ pulumi.set(self, "name", value)
211
+
212
+ @property
213
+ @pulumi.getter(name="vgpuDevices")
214
+ def vgpu_devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
215
+ """
216
+ The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
217
+ """
218
+ return pulumi.get(self, "vgpu_devices")
219
+
220
+ @vgpu_devices.setter
221
+ def vgpu_devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
222
+ pulumi.set(self, "vgpu_devices", value)
223
+
224
+
225
+ class VirtualMachineClass(pulumi.CustomResource):
226
+ @overload
227
+ def __init__(__self__,
228
+ resource_name: str,
229
+ opts: Optional[pulumi.ResourceOptions] = None,
230
+ cpu_reservation: Optional[pulumi.Input[int]] = None,
231
+ cpus: Optional[pulumi.Input[int]] = None,
232
+ memory: Optional[pulumi.Input[int]] = None,
233
+ memory_reservation: Optional[pulumi.Input[int]] = None,
234
+ name: Optional[pulumi.Input[str]] = None,
235
+ vgpu_devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
236
+ __props__=None):
237
+ """
238
+ Provides a resource for configuring a Virtual Machine class.
239
+
240
+ ## Example Usage
241
+
242
+ ### S
243
+
244
+ **Create a basic class**
245
+
246
+ ```python
247
+ import pulumi
248
+ import pulumi_vsphere as vsphere
249
+
250
+ basic_class = vsphere.VirtualMachineClass("basic_class",
251
+ name="basic-class",
252
+ cpus=4,
253
+ memory=4096)
254
+ ```
255
+
256
+ **Create a class with a vGPU**
257
+
258
+ ```python
259
+ import pulumi
260
+ import pulumi_vsphere as vsphere
261
+
262
+ vgp_class = vsphere.VirtualMachineClass("vgp_class",
263
+ name="vgpu-class",
264
+ cpus=4,
265
+ memory=4096,
266
+ memory_reservation=100,
267
+ vgpu_devices=["vgpu1"])
268
+ ```
269
+
270
+ :param str resource_name: The name of the resource.
271
+ :param pulumi.ResourceOptions opts: Options for the resource.
272
+ :param pulumi.Input[int] cpu_reservation: The percentage of the available CPU capacity which will be reserved.
273
+ :param pulumi.Input[int] cpus: The number of CPUs.
274
+ :param pulumi.Input[int] memory: The amount of memory in MB.
275
+ :param pulumi.Input[int] memory_reservation: The percentage of memory reservation.
276
+ :param pulumi.Input[str] name: The name for the class.
277
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] vgpu_devices: The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
278
+ """
279
+ ...
280
+ @overload
281
+ def __init__(__self__,
282
+ resource_name: str,
283
+ args: VirtualMachineClassArgs,
284
+ opts: Optional[pulumi.ResourceOptions] = None):
285
+ """
286
+ Provides a resource for configuring a Virtual Machine class.
287
+
288
+ ## Example Usage
289
+
290
+ ### S
291
+
292
+ **Create a basic class**
293
+
294
+ ```python
295
+ import pulumi
296
+ import pulumi_vsphere as vsphere
297
+
298
+ basic_class = vsphere.VirtualMachineClass("basic_class",
299
+ name="basic-class",
300
+ cpus=4,
301
+ memory=4096)
302
+ ```
303
+
304
+ **Create a class with a vGPU**
305
+
306
+ ```python
307
+ import pulumi
308
+ import pulumi_vsphere as vsphere
309
+
310
+ vgp_class = vsphere.VirtualMachineClass("vgp_class",
311
+ name="vgpu-class",
312
+ cpus=4,
313
+ memory=4096,
314
+ memory_reservation=100,
315
+ vgpu_devices=["vgpu1"])
316
+ ```
317
+
318
+ :param str resource_name: The name of the resource.
319
+ :param VirtualMachineClassArgs args: The arguments to use to populate this resource's properties.
320
+ :param pulumi.ResourceOptions opts: Options for the resource.
321
+ """
322
+ ...
323
+ def __init__(__self__, resource_name: str, *args, **kwargs):
324
+ resource_args, opts = _utilities.get_resource_args_opts(VirtualMachineClassArgs, pulumi.ResourceOptions, *args, **kwargs)
325
+ if resource_args is not None:
326
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
327
+ else:
328
+ __self__._internal_init(resource_name, *args, **kwargs)
329
+
330
+ def _internal_init(__self__,
331
+ resource_name: str,
332
+ opts: Optional[pulumi.ResourceOptions] = None,
333
+ cpu_reservation: Optional[pulumi.Input[int]] = None,
334
+ cpus: Optional[pulumi.Input[int]] = None,
335
+ memory: Optional[pulumi.Input[int]] = None,
336
+ memory_reservation: Optional[pulumi.Input[int]] = None,
337
+ name: Optional[pulumi.Input[str]] = None,
338
+ vgpu_devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
339
+ __props__=None):
340
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
341
+ if not isinstance(opts, pulumi.ResourceOptions):
342
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
343
+ if opts.id is None:
344
+ if __props__ is not None:
345
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
346
+ __props__ = VirtualMachineClassArgs.__new__(VirtualMachineClassArgs)
347
+
348
+ __props__.__dict__["cpu_reservation"] = cpu_reservation
349
+ if cpus is None and not opts.urn:
350
+ raise TypeError("Missing required property 'cpus'")
351
+ __props__.__dict__["cpus"] = cpus
352
+ if memory is None and not opts.urn:
353
+ raise TypeError("Missing required property 'memory'")
354
+ __props__.__dict__["memory"] = memory
355
+ __props__.__dict__["memory_reservation"] = memory_reservation
356
+ __props__.__dict__["name"] = name
357
+ __props__.__dict__["vgpu_devices"] = vgpu_devices
358
+ super(VirtualMachineClass, __self__).__init__(
359
+ 'vsphere:index/virtualMachineClass:VirtualMachineClass',
360
+ resource_name,
361
+ __props__,
362
+ opts)
363
+
364
+ @staticmethod
365
+ def get(resource_name: str,
366
+ id: pulumi.Input[str],
367
+ opts: Optional[pulumi.ResourceOptions] = None,
368
+ cpu_reservation: Optional[pulumi.Input[int]] = None,
369
+ cpus: Optional[pulumi.Input[int]] = None,
370
+ memory: Optional[pulumi.Input[int]] = None,
371
+ memory_reservation: Optional[pulumi.Input[int]] = None,
372
+ name: Optional[pulumi.Input[str]] = None,
373
+ vgpu_devices: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'VirtualMachineClass':
374
+ """
375
+ Get an existing VirtualMachineClass resource's state with the given name, id, and optional extra
376
+ properties used to qualify the lookup.
377
+
378
+ :param str resource_name: The unique name of the resulting resource.
379
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
380
+ :param pulumi.ResourceOptions opts: Options for the resource.
381
+ :param pulumi.Input[int] cpu_reservation: The percentage of the available CPU capacity which will be reserved.
382
+ :param pulumi.Input[int] cpus: The number of CPUs.
383
+ :param pulumi.Input[int] memory: The amount of memory in MB.
384
+ :param pulumi.Input[int] memory_reservation: The percentage of memory reservation.
385
+ :param pulumi.Input[str] name: The name for the class.
386
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] vgpu_devices: The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
387
+ """
388
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
389
+
390
+ __props__ = _VirtualMachineClassState.__new__(_VirtualMachineClassState)
391
+
392
+ __props__.__dict__["cpu_reservation"] = cpu_reservation
393
+ __props__.__dict__["cpus"] = cpus
394
+ __props__.__dict__["memory"] = memory
395
+ __props__.__dict__["memory_reservation"] = memory_reservation
396
+ __props__.__dict__["name"] = name
397
+ __props__.__dict__["vgpu_devices"] = vgpu_devices
398
+ return VirtualMachineClass(resource_name, opts=opts, __props__=__props__)
399
+
400
+ @property
401
+ @pulumi.getter(name="cpuReservation")
402
+ def cpu_reservation(self) -> pulumi.Output[Optional[int]]:
403
+ """
404
+ The percentage of the available CPU capacity which will be reserved.
405
+ """
406
+ return pulumi.get(self, "cpu_reservation")
407
+
408
+ @property
409
+ @pulumi.getter
410
+ def cpus(self) -> pulumi.Output[int]:
411
+ """
412
+ The number of CPUs.
413
+ """
414
+ return pulumi.get(self, "cpus")
415
+
416
+ @property
417
+ @pulumi.getter
418
+ def memory(self) -> pulumi.Output[int]:
419
+ """
420
+ The amount of memory in MB.
421
+ """
422
+ return pulumi.get(self, "memory")
423
+
424
+ @property
425
+ @pulumi.getter(name="memoryReservation")
426
+ def memory_reservation(self) -> pulumi.Output[Optional[int]]:
427
+ """
428
+ The percentage of memory reservation.
429
+ """
430
+ return pulumi.get(self, "memory_reservation")
431
+
432
+ @property
433
+ @pulumi.getter
434
+ def name(self) -> pulumi.Output[str]:
435
+ """
436
+ The name for the class.
437
+ """
438
+ return pulumi.get(self, "name")
439
+
440
+ @property
441
+ @pulumi.getter(name="vgpuDevices")
442
+ def vgpu_devices(self) -> pulumi.Output[Optional[Sequence[str]]]:
443
+ """
444
+ The identifiers of the vGPU devices for the class. If this is set memory reservation needs to be 100.
445
+ """
446
+ return pulumi.get(self, "vgpu_devices")
447
+
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['VirtualMachineSnapshotArgs', 'VirtualMachineSnapshot']
@@ -290,7 +295,7 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
290
295
  For more information on managing snapshots and how they work in VMware, see
291
296
  [here][ext-vm-snapshot-management].
292
297
 
293
- [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html
298
+ [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-esxi-host-client/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html
294
299
 
295
300
  > **NOTE:** A snapshot in VMware differs from traditional disk snapshots, and
296
301
  can contain the actual running state of the virtual machine, data for all disks
@@ -308,21 +313,19 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
308
313
 
309
314
  ## Example Usage
310
315
 
311
- <!--Start PulumiCodeChooser -->
312
316
  ```python
313
317
  import pulumi
314
318
  import pulumi_vsphere as vsphere
315
319
 
316
320
  demo1 = vsphere.VirtualMachineSnapshot("demo1",
317
- consolidate=True,
321
+ virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9",
322
+ snapshot_name="Snapshot Name",
318
323
  description="This is Demo Snapshot",
319
324
  memory=True,
320
325
  quiesce=True,
321
326
  remove_children=False,
322
- snapshot_name="Snapshot Name",
323
- virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9")
327
+ consolidate=True)
324
328
  ```
325
- <!--End PulumiCodeChooser -->
326
329
 
327
330
  :param str resource_name: The name of the resource.
328
331
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -353,7 +356,7 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
353
356
  For more information on managing snapshots and how they work in VMware, see
354
357
  [here][ext-vm-snapshot-management].
355
358
 
356
- [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html
359
+ [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-esxi-host-client/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html
357
360
 
358
361
  > **NOTE:** A snapshot in VMware differs from traditional disk snapshots, and
359
362
  can contain the actual running state of the virtual machine, data for all disks
@@ -371,21 +374,19 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
371
374
 
372
375
  ## Example Usage
373
376
 
374
- <!--Start PulumiCodeChooser -->
375
377
  ```python
376
378
  import pulumi
377
379
  import pulumi_vsphere as vsphere
378
380
 
379
381
  demo1 = vsphere.VirtualMachineSnapshot("demo1",
380
- consolidate=True,
382
+ virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9",
383
+ snapshot_name="Snapshot Name",
381
384
  description="This is Demo Snapshot",
382
385
  memory=True,
383
386
  quiesce=True,
384
387
  remove_children=False,
385
- snapshot_name="Snapshot Name",
386
- virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9")
388
+ consolidate=True)
387
389
  ```
388
- <!--End PulumiCodeChooser -->
389
390
 
390
391
  :param str resource_name: The name of the resource.
391
392
  :param VirtualMachineSnapshotArgs args: The arguments to use to populate this resource's properties.