pulumi-vsphere 4.12.0__py3-none-any.whl → 4.12.0a1725645004__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.

Potentially problematic release.


This version of pulumi-vsphere might be problematic. Click here for more details.

Files changed (84) hide show
  1. pulumi_vsphere/_inputs.py +6 -1135
  2. pulumi_vsphere/_utilities.py +1 -1
  3. pulumi_vsphere/compute_cluster.py +2 -181
  4. pulumi_vsphere/compute_cluster_host_group.py +2 -67
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +2 -29
  6. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +2 -41
  7. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +2 -205
  8. pulumi_vsphere/compute_cluster_vm_group.py +2 -198
  9. pulumi_vsphere/compute_cluster_vm_host_rule.py +2 -73
  10. pulumi_vsphere/config/__init__.pyi +0 -5
  11. pulumi_vsphere/config/vars.py +0 -5
  12. pulumi_vsphere/content_library.py +2 -103
  13. pulumi_vsphere/content_library_item.py +2 -143
  14. pulumi_vsphere/custom_attribute.py +2 -77
  15. pulumi_vsphere/datacenter.py +4 -19
  16. pulumi_vsphere/datastore_cluster.py +2 -63
  17. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +2 -159
  18. pulumi_vsphere/distributed_port_group.py +2 -285
  19. pulumi_vsphere/distributed_virtual_switch.py +2 -261
  20. pulumi_vsphere/dpm_host_override.py +2 -63
  21. pulumi_vsphere/drs_vm_override.py +2 -67
  22. pulumi_vsphere/entity_permissions.py +0 -5
  23. pulumi_vsphere/file.py +0 -5
  24. pulumi_vsphere/folder.py +2 -141
  25. pulumi_vsphere/get_compute_cluster.py +4 -15
  26. pulumi_vsphere/get_compute_cluster_host_group.py +6 -17
  27. pulumi_vsphere/get_content_library.py +4 -12
  28. pulumi_vsphere/get_content_library_item.py +4 -16
  29. pulumi_vsphere/get_custom_attribute.py +4 -13
  30. pulumi_vsphere/get_datacenter.py +7 -29
  31. pulumi_vsphere/get_datastore.py +4 -16
  32. pulumi_vsphere/get_datastore_cluster.py +5 -30
  33. pulumi_vsphere/get_datastore_stats.py +4 -16
  34. pulumi_vsphere/get_distributed_virtual_switch.py +4 -15
  35. pulumi_vsphere/get_dynamic.py +4 -16
  36. pulumi_vsphere/get_folder.py +4 -12
  37. pulumi_vsphere/get_guest_os_customization.py +4 -17
  38. pulumi_vsphere/get_host.py +4 -15
  39. pulumi_vsphere/get_host_base_images.py +4 -11
  40. pulumi_vsphere/get_host_pci_device.py +4 -19
  41. pulumi_vsphere/get_host_thumbprint.py +14 -34
  42. pulumi_vsphere/get_host_vgpu_profile.py +4 -15
  43. pulumi_vsphere/get_license.py +4 -17
  44. pulumi_vsphere/get_network.py +5 -65
  45. pulumi_vsphere/get_ovf_vm_template.py +4 -55
  46. pulumi_vsphere/get_policy.py +4 -12
  47. pulumi_vsphere/get_resource_pool.py +4 -14
  48. pulumi_vsphere/get_role.py +4 -18
  49. pulumi_vsphere/get_tag.py +4 -15
  50. pulumi_vsphere/get_tag_category.py +4 -15
  51. pulumi_vsphere/get_vapp_container.py +4 -14
  52. pulumi_vsphere/get_virtual_machine.py +5 -145
  53. pulumi_vsphere/get_vmfs_disks.py +4 -17
  54. pulumi_vsphere/guest_os_customization.py +0 -5
  55. pulumi_vsphere/ha_vm_override.py +2 -163
  56. pulumi_vsphere/host.py +12 -203
  57. pulumi_vsphere/host_port_group.py +2 -17
  58. pulumi_vsphere/host_virtual_switch.py +2 -69
  59. pulumi_vsphere/license.py +0 -5
  60. pulumi_vsphere/nas_datastore.py +2 -67
  61. pulumi_vsphere/offline_software_depot.py +0 -5
  62. pulumi_vsphere/outputs.py +0 -45
  63. pulumi_vsphere/provider.py +0 -5
  64. pulumi_vsphere/pulumi-plugin.json +1 -1
  65. pulumi_vsphere/resource_pool.py +437 -168
  66. pulumi_vsphere/role.py +2 -33
  67. pulumi_vsphere/storage_drs_vm_override.py +2 -133
  68. pulumi_vsphere/supervisor.py +0 -5
  69. pulumi_vsphere/tag.py +2 -159
  70. pulumi_vsphere/tag_category.py +2 -83
  71. pulumi_vsphere/vapp_container.py +2 -163
  72. pulumi_vsphere/vapp_entity.py +2 -147
  73. pulumi_vsphere/virtual_disk.py +2 -81
  74. pulumi_vsphere/virtual_machine.py +2 -100
  75. pulumi_vsphere/virtual_machine_class.py +0 -5
  76. pulumi_vsphere/virtual_machine_snapshot.py +0 -5
  77. pulumi_vsphere/vm_storage_policy.py +0 -5
  78. pulumi_vsphere/vmfs_datastore.py +2 -271
  79. pulumi_vsphere/vnic.py +4 -19
  80. {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/METADATA +2 -3
  81. pulumi_vsphere-4.12.0a1725645004.dist-info/RECORD +86 -0
  82. {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/WHEEL +1 -1
  83. pulumi_vsphere-4.12.0.dist-info/RECORD +0 -86
  84. {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725645004.dist-info}/top_level.txt +0 -0
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = ['DrsVmOverrideArgs', 'DrsVmOverride']
@@ -209,37 +204,7 @@ class DrsVmOverride(pulumi.CustomResource):
209
204
  virtual_machine_id: Optional[pulumi.Input[str]] = None,
210
205
  __props__=None):
211
206
  """
212
- The `DrsVmOverride` resource can be used to add a DRS override to a
213
- cluster for a specific virtual machine. With this resource, one can enable or
214
- disable DRS and control the automation level for a single virtual machine
215
- without affecting the rest of the cluster.
216
-
217
- For more information on vSphere clusters and DRS, see [this
218
- page][ref-vsphere-drs-clusters].
219
-
220
- [ref-vsphere-drs-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-8ACF3502-5314-469F-8CC9-4A9BD5925BC2.html
221
-
222
- > **NOTE:** This resource requires vCenter and is not available on direct ESXi
223
- connections.
224
-
225
- ## Import
226
-
227
- An existing override can be imported into this resource by
228
-
229
- supplying both the path to the cluster, and the path to the virtual machine, to
230
-
231
- `pulumi import`. If no override exists, an error will be given. An example
232
-
233
- is below:
234
-
235
- ```sh
236
- $ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
237
- ```
238
-
239
- '{"compute_cluster_path": "/dc1/host/cluster1", \\
240
-
241
- "virtual_machine_path": "/dc1/vm/srv1"}'
242
-
207
+ Create a DrsVmOverride resource with the given unique name, props, and options.
243
208
  :param str resource_name: The name of the resource.
244
209
  :param pulumi.ResourceOptions opts: Options for the resource.
245
210
  :param pulumi.Input[str] compute_cluster_id: The managed object reference
@@ -264,37 +229,7 @@ class DrsVmOverride(pulumi.CustomResource):
264
229
  args: DrsVmOverrideArgs,
265
230
  opts: Optional[pulumi.ResourceOptions] = None):
266
231
  """
267
- The `DrsVmOverride` resource can be used to add a DRS override to a
268
- cluster for a specific virtual machine. With this resource, one can enable or
269
- disable DRS and control the automation level for a single virtual machine
270
- without affecting the rest of the cluster.
271
-
272
- For more information on vSphere clusters and DRS, see [this
273
- page][ref-vsphere-drs-clusters].
274
-
275
- [ref-vsphere-drs-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-8ACF3502-5314-469F-8CC9-4A9BD5925BC2.html
276
-
277
- > **NOTE:** This resource requires vCenter and is not available on direct ESXi
278
- connections.
279
-
280
- ## Import
281
-
282
- An existing override can be imported into this resource by
283
-
284
- supplying both the path to the cluster, and the path to the virtual machine, to
285
-
286
- `pulumi import`. If no override exists, an error will be given. An example
287
-
288
- is below:
289
-
290
- ```sh
291
- $ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
292
- ```
293
-
294
- '{"compute_cluster_path": "/dc1/host/cluster1", \\
295
-
296
- "virtual_machine_path": "/dc1/vm/srv1"}'
297
-
232
+ Create a DrsVmOverride resource with the given unique name, props, and options.
298
233
  :param str resource_name: The name of the resource.
299
234
  :param DrsVmOverrideArgs args: The arguments to use to populate this resource's properties.
300
235
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
  from . import outputs
17
12
  from ._inputs import *
pulumi_vsphere/file.py CHANGED
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = ['FileArgs', 'File']
pulumi_vsphere/folder.py CHANGED
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = ['FolderArgs', 'Folder']
@@ -290,74 +285,7 @@ class Folder(pulumi.CustomResource):
290
285
  type: Optional[pulumi.Input[str]] = None,
291
286
  __props__=None):
292
287
  """
293
- The `Folder` resource can be used to manage vSphere inventory folders.
294
- The resource supports creating folders of the 5 major types - datacenter
295
- folders, host and cluster folders, virtual machine folders, storage folders,
296
- and network folders.
297
-
298
- Paths are always relative to the specific type of folder you are creating.
299
- A subfolder is discovered by parsing the relative path specified in `path`, so
300
- `foo/bar` will create a folder named `bar` in the parent folder `foo`, as long
301
- as that folder exists.
302
-
303
- ## Example Usage
304
-
305
- The basic example below creates a virtual machine folder named
306
- `test-folder` in the default datacenter's VM hierarchy.
307
-
308
- ```python
309
- import pulumi
310
- import pulumi_vsphere as vsphere
311
-
312
- datacenter = vsphere.get_datacenter()
313
- folder = vsphere.Folder("folder",
314
- path="test-folder",
315
- type="vm",
316
- datacenter_id=datacenter.id)
317
- ```
318
-
319
- ### Example with subfolders
320
-
321
- The below example builds off of the above by first creating a folder named
322
- `test-parent`, and then locating `test-folder` in that
323
- folder. To ensure the parent is created first, we create an interpolation
324
- dependency off the parent's `path` attribute.
325
-
326
- Note that if you change parents (for example, went from the above basic
327
- configuration to this one), your folder will be moved to be under the correct
328
- parent.
329
-
330
- ```python
331
- import pulumi
332
- import pulumi_vsphere as vsphere
333
-
334
- datacenter = vsphere.get_datacenter()
335
- parent = vsphere.Folder("parent",
336
- path="test-parent",
337
- type="vm",
338
- datacenter_id=datacenter.id)
339
- folder = vsphere.Folder("folder",
340
- path=parent.path.apply(lambda path: f"{path}/test-folder"),
341
- type="vm",
342
- datacenter_id=datacenter.id)
343
- ```
344
-
345
- ## Import
346
-
347
- An existing folder can be imported into this resource via
348
-
349
- its full path, via the following command:
350
-
351
- ```sh
352
- $ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/terraform-test-folder
353
- ```
354
-
355
- The above command would import the folder from our examples above, the VM
356
-
357
- folder named `terraform-test-folder` located in the datacenter named
358
-
359
- `default-dc`.
360
-
288
+ Create a Folder resource with the given unique name, props, and options.
361
289
  :param str resource_name: The name of the resource.
362
290
  :param pulumi.ResourceOptions opts: Options for the resource.
363
291
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
@@ -395,74 +323,7 @@ class Folder(pulumi.CustomResource):
395
323
  args: FolderArgs,
396
324
  opts: Optional[pulumi.ResourceOptions] = None):
397
325
  """
398
- The `Folder` resource can be used to manage vSphere inventory folders.
399
- The resource supports creating folders of the 5 major types - datacenter
400
- folders, host and cluster folders, virtual machine folders, storage folders,
401
- and network folders.
402
-
403
- Paths are always relative to the specific type of folder you are creating.
404
- A subfolder is discovered by parsing the relative path specified in `path`, so
405
- `foo/bar` will create a folder named `bar` in the parent folder `foo`, as long
406
- as that folder exists.
407
-
408
- ## Example Usage
409
-
410
- The basic example below creates a virtual machine folder named
411
- `test-folder` in the default datacenter's VM hierarchy.
412
-
413
- ```python
414
- import pulumi
415
- import pulumi_vsphere as vsphere
416
-
417
- datacenter = vsphere.get_datacenter()
418
- folder = vsphere.Folder("folder",
419
- path="test-folder",
420
- type="vm",
421
- datacenter_id=datacenter.id)
422
- ```
423
-
424
- ### Example with subfolders
425
-
426
- The below example builds off of the above by first creating a folder named
427
- `test-parent`, and then locating `test-folder` in that
428
- folder. To ensure the parent is created first, we create an interpolation
429
- dependency off the parent's `path` attribute.
430
-
431
- Note that if you change parents (for example, went from the above basic
432
- configuration to this one), your folder will be moved to be under the correct
433
- parent.
434
-
435
- ```python
436
- import pulumi
437
- import pulumi_vsphere as vsphere
438
-
439
- datacenter = vsphere.get_datacenter()
440
- parent = vsphere.Folder("parent",
441
- path="test-parent",
442
- type="vm",
443
- datacenter_id=datacenter.id)
444
- folder = vsphere.Folder("folder",
445
- path=parent.path.apply(lambda path: f"{path}/test-folder"),
446
- type="vm",
447
- datacenter_id=datacenter.id)
448
- ```
449
-
450
- ## Import
451
-
452
- An existing folder can be imported into this resource via
453
-
454
- its full path, via the following command:
455
-
456
- ```sh
457
- $ pulumi import vsphere:index/folder:Folder folder /default-dc/vm/terraform-test-folder
458
- ```
459
-
460
- The above command would import the folder from our examples above, the VM
461
-
462
- folder named `terraform-test-folder` located in the datacenter named
463
-
464
- `default-dc`.
465
-
326
+ Create a Folder resource with the given unique name, props, and options.
466
327
  :param str resource_name: The name of the resource.
467
328
  :param FolderArgs args: The arguments to use to populate this resource's properties.
468
329
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -123,6 +118,9 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
123
118
  id=pulumi.get(__ret__, 'id'),
124
119
  name=pulumi.get(__ret__, 'name'),
125
120
  resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
121
+
122
+
123
+ @_utilities.lift_output_func(get_compute_cluster)
126
124
  def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
127
125
  name: Optional[pulumi.Input[str]] = None,
128
126
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeClusterResult]:
@@ -155,13 +153,4 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
155
153
  use the `id` attribute from an empty `Datacenter` data source.
156
154
  :param str name: The name or absolute path to the cluster.
157
155
  """
158
- __args__ = dict()
159
- __args__['datacenterId'] = datacenter_id
160
- __args__['name'] = name
161
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
162
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getComputeCluster:getComputeCluster', __args__, opts=opts, typ=GetComputeClusterResult)
163
- return __ret__.apply(lambda __response__: GetComputeClusterResult(
164
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
165
- id=pulumi.get(__response__, 'id'),
166
- name=pulumi.get(__response__, 'name'),
167
- resource_pool_id=pulumi.get(__response__, 'resource_pool_id')))
156
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -101,7 +96,7 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
101
96
  compute_cluster_id=cluster.id)
102
97
  host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
103
98
  compute_cluster_id=cluster.id,
104
- name="pulumi-host-rule1",
99
+ name="terraform-host-rule1",
105
100
  vm_group_name="vmgroup-01",
106
101
  affinity_host_group_name=host_group.name)
107
102
  ```
@@ -125,6 +120,9 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
125
120
  host_system_ids=pulumi.get(__ret__, 'host_system_ids'),
126
121
  id=pulumi.get(__ret__, 'id'),
127
122
  name=pulumi.get(__ret__, 'name'))
123
+
124
+
125
+ @_utilities.lift_output_func(get_compute_cluster_host_group)
128
126
  def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.Input[str]] = None,
129
127
  name: Optional[pulumi.Input[str]] = None,
130
128
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeClusterHostGroupResult]:
@@ -146,7 +144,7 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
146
144
  compute_cluster_id=cluster.id)
147
145
  host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
148
146
  compute_cluster_id=cluster.id,
149
- name="pulumi-host-rule1",
147
+ name="terraform-host-rule1",
150
148
  vm_group_name="vmgroup-01",
151
149
  affinity_host_group_name=host_group.name)
152
150
  ```
@@ -159,13 +157,4 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
159
157
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
160
158
  :param str name: The name of the host group.
161
159
  """
162
- __args__ = dict()
163
- __args__['computeClusterId'] = compute_cluster_id
164
- __args__['name'] = name
165
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
166
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup', __args__, opts=opts, typ=GetComputeClusterHostGroupResult)
167
- return __ret__.apply(lambda __response__: GetComputeClusterHostGroupResult(
168
- compute_cluster_id=pulumi.get(__response__, 'compute_cluster_id'),
169
- host_system_ids=pulumi.get(__response__, 'host_system_ids'),
170
- id=pulumi.get(__response__, 'id'),
171
- name=pulumi.get(__response__, 'name')))
160
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -87,6 +82,9 @@ def get_content_library(name: Optional[str] = None,
87
82
  return AwaitableGetContentLibraryResult(
88
83
  id=pulumi.get(__ret__, 'id'),
89
84
  name=pulumi.get(__ret__, 'name'))
85
+
86
+
87
+ @_utilities.lift_output_func(get_content_library)
90
88
  def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
91
89
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
92
90
  """
@@ -108,10 +106,4 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
108
106
 
109
107
  :param str name: The name of the content library.
110
108
  """
111
- __args__ = dict()
112
- __args__['name'] = name
113
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
114
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getContentLibrary:getContentLibrary', __args__, opts=opts, typ=GetContentLibraryResult)
115
- return __ret__.apply(lambda __response__: GetContentLibraryResult(
116
- id=pulumi.get(__response__, 'id'),
117
- name=pulumi.get(__response__, 'name')))
109
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -106,6 +101,9 @@ def get_content_library_item(library_id: Optional[str] = None,
106
101
  library_id=pulumi.get(__ret__, 'library_id'),
107
102
  name=pulumi.get(__ret__, 'name'),
108
103
  type=pulumi.get(__ret__, 'type'))
104
+
105
+
106
+ @_utilities.lift_output_func(get_content_library_item)
109
107
  def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = None,
110
108
  name: Optional[pulumi.Input[str]] = None,
111
109
  type: Optional[pulumi.Input[str]] = None,
@@ -124,14 +122,4 @@ def get_content_library_item_output(library_id: Optional[pulumi.Input[str]] = No
124
122
  :param str type: The type for the content library item. One of `ovf`,
125
123
  `vm-template`, or `iso`
126
124
  """
127
- __args__ = dict()
128
- __args__['libraryId'] = library_id
129
- __args__['name'] = name
130
- __args__['type'] = type
131
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
132
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getContentLibraryItem:getContentLibraryItem', __args__, opts=opts, typ=GetContentLibraryItemResult)
133
- return __ret__.apply(lambda __response__: GetContentLibraryItemResult(
134
- id=pulumi.get(__response__, 'id'),
135
- library_id=pulumi.get(__response__, 'library_id'),
136
- name=pulumi.get(__response__, 'name'),
137
- type=pulumi.get(__response__, 'type')))
125
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -100,6 +95,9 @@ def get_custom_attribute(name: Optional[str] = None,
100
95
  id=pulumi.get(__ret__, 'id'),
101
96
  managed_object_type=pulumi.get(__ret__, 'managed_object_type'),
102
97
  name=pulumi.get(__ret__, 'name'))
98
+
99
+
100
+ @_utilities.lift_output_func(get_custom_attribute)
103
101
  def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
104
102
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCustomAttributeResult]:
105
103
  """
@@ -124,11 +122,4 @@ def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None,
124
122
 
125
123
  :param str name: The name of the custom attribute.
126
124
  """
127
- __args__ = dict()
128
- __args__['name'] = name
129
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
130
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getCustomAttribute:getCustomAttribute', __args__, opts=opts, typ=GetCustomAttributeResult)
131
- return __ret__.apply(lambda __response__: GetCustomAttributeResult(
132
- id=pulumi.get(__response__, 'id'),
133
- managed_object_type=pulumi.get(__response__, 'managed_object_type'),
134
- name=pulumi.get(__response__, 'name')))
125
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -26,16 +21,13 @@ class GetDatacenterResult:
26
21
  """
27
22
  A collection of values returned by getDatacenter.
28
23
  """
29
- def __init__(__self__, id=None, name=None, virtual_machines=None):
24
+ def __init__(__self__, id=None, name=None):
30
25
  if id and not isinstance(id, str):
31
26
  raise TypeError("Expected argument 'id' to be a str")
32
27
  pulumi.set(__self__, "id", id)
33
28
  if name and not isinstance(name, str):
34
29
  raise TypeError("Expected argument 'name' to be a str")
35
30
  pulumi.set(__self__, "name", name)
36
- if virtual_machines and not isinstance(virtual_machines, list):
37
- raise TypeError("Expected argument 'virtual_machines' to be a list")
38
- pulumi.set(__self__, "virtual_machines", virtual_machines)
39
31
 
40
32
  @property
41
33
  @pulumi.getter
@@ -50,14 +42,6 @@ class GetDatacenterResult:
50
42
  def name(self) -> Optional[str]:
51
43
  return pulumi.get(self, "name")
52
44
 
53
- @property
54
- @pulumi.getter(name="virtualMachines")
55
- def virtual_machines(self) -> Sequence[str]:
56
- """
57
- List of all virtual machines included in the vSphere datacenter object.
58
- """
59
- return pulumi.get(self, "virtual_machines")
60
-
61
45
 
62
46
  class AwaitableGetDatacenterResult(GetDatacenterResult):
63
47
  # pylint: disable=using-constant-test
@@ -66,8 +50,7 @@ class AwaitableGetDatacenterResult(GetDatacenterResult):
66
50
  yield self
67
51
  return GetDatacenterResult(
68
52
  id=self.id,
69
- name=self.name,
70
- virtual_machines=self.virtual_machines)
53
+ name=self.name)
71
54
 
72
55
 
73
56
  def get_datacenter(name: Optional[str] = None,
@@ -103,8 +86,10 @@ def get_datacenter(name: Optional[str] = None,
103
86
 
104
87
  return AwaitableGetDatacenterResult(
105
88
  id=pulumi.get(__ret__, 'id'),
106
- name=pulumi.get(__ret__, 'name'),
107
- virtual_machines=pulumi.get(__ret__, 'virtual_machines'))
89
+ name=pulumi.get(__ret__, 'name'))
90
+
91
+
92
+ @_utilities.lift_output_func(get_datacenter)
108
93
  def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
109
94
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacenterResult]:
110
95
  """
@@ -131,11 +116,4 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
131
116
  datacenters that exist in the vSphere inventory when managed by a vCenter Server
132
117
  instance. Hence, the `name` attribute is completely ignored.
133
118
  """
134
- __args__ = dict()
135
- __args__['name'] = name
136
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
137
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatacenter:getDatacenter', __args__, opts=opts, typ=GetDatacenterResult)
138
- return __ret__.apply(lambda __response__: GetDatacenterResult(
139
- id=pulumi.get(__response__, 'id'),
140
- name=pulumi.get(__response__, 'name'),
141
- virtual_machines=pulumi.get(__response__, 'virtual_machines')))
119
+ ...
@@ -4,14 +4,9 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
- import sys
8
7
  import pulumi
9
8
  import pulumi.runtime
10
9
  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
10
  from . import _utilities
16
11
 
17
12
  __all__ = [
@@ -124,6 +119,9 @@ def get_datastore(datacenter_id: Optional[str] = None,
124
119
  id=pulumi.get(__ret__, 'id'),
125
120
  name=pulumi.get(__ret__, 'name'),
126
121
  stats=pulumi.get(__ret__, 'stats'))
122
+
123
+
124
+ @_utilities.lift_output_func(get_datastore)
127
125
  def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
128
126
  name: Optional[pulumi.Input[str]] = None,
129
127
  stats: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
@@ -155,14 +153,4 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
155
153
  total datastore capacity is represented as `capacity` and the free remaining
156
154
  disk is represented as `free`.
157
155
  """
158
- __args__ = dict()
159
- __args__['datacenterId'] = datacenter_id
160
- __args__['name'] = name
161
- __args__['stats'] = stats
162
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
163
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastore:getDatastore', __args__, opts=opts, typ=GetDatastoreResult)
164
- return __ret__.apply(lambda __response__: GetDatastoreResult(
165
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
166
- id=pulumi.get(__response__, 'id'),
167
- name=pulumi.get(__response__, 'name'),
168
- stats=pulumi.get(__response__, 'stats')))
156
+ ...