pulumi-vsphere 4.12.0__py3-none-any.whl → 4.12.0a1725603256__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.0a1725603256.dist-info}/METADATA +2 -3
  81. pulumi_vsphere-4.12.0a1725603256.dist-info/RECORD +86 -0
  82. {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725603256.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.0a1725603256.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__ = [
@@ -26,13 +21,10 @@ class GetDatastoreClusterResult:
26
21
  """
27
22
  A collection of values returned by getDatastoreCluster.
28
23
  """
29
- def __init__(__self__, datacenter_id=None, datastores=None, id=None, name=None):
24
+ def __init__(__self__, datacenter_id=None, id=None, name=None):
30
25
  if datacenter_id and not isinstance(datacenter_id, str):
31
26
  raise TypeError("Expected argument 'datacenter_id' to be a str")
32
27
  pulumi.set(__self__, "datacenter_id", datacenter_id)
33
- if datastores and not isinstance(datastores, list):
34
- raise TypeError("Expected argument 'datastores' to be a list")
35
- pulumi.set(__self__, "datastores", datastores)
36
28
  if id and not isinstance(id, str):
37
29
  raise TypeError("Expected argument 'id' to be a str")
38
30
  pulumi.set(__self__, "id", id)
@@ -45,15 +37,6 @@ class GetDatastoreClusterResult:
45
37
  def datacenter_id(self) -> Optional[str]:
46
38
  return pulumi.get(self, "datacenter_id")
47
39
 
48
- @property
49
- @pulumi.getter
50
- def datastores(self) -> Sequence[str]:
51
- """
52
- (Optional) The names of the datastores included in the specific
53
- cluster.
54
- """
55
- return pulumi.get(self, "datastores")
56
-
57
40
  @property
58
41
  @pulumi.getter
59
42
  def id(self) -> str:
@@ -75,7 +58,6 @@ class AwaitableGetDatastoreClusterResult(GetDatastoreClusterResult):
75
58
  yield self
76
59
  return GetDatastoreClusterResult(
77
60
  datacenter_id=self.datacenter_id,
78
- datastores=self.datastores,
79
61
  id=self.id,
80
62
  name=self.name)
81
63
 
@@ -116,9 +98,11 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
116
98
 
117
99
  return AwaitableGetDatastoreClusterResult(
118
100
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
119
- datastores=pulumi.get(__ret__, 'datastores'),
120
101
  id=pulumi.get(__ret__, 'id'),
121
102
  name=pulumi.get(__ret__, 'name'))
103
+
104
+
105
+ @_utilities.lift_output_func(get_datastore_cluster)
122
106
  def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
123
107
  name: Optional[pulumi.Input[str]] = None,
124
108
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreClusterResult]:
@@ -147,13 +131,4 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
147
131
  `Datacenter` data source.
148
132
  :param str name: The name or absolute path to the datastore cluster.
149
133
  """
150
- __args__ = dict()
151
- __args__['datacenterId'] = datacenter_id
152
- __args__['name'] = name
153
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
154
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreCluster:getDatastoreCluster', __args__, opts=opts, typ=GetDatastoreClusterResult)
155
- return __ret__.apply(lambda __response__: GetDatastoreClusterResult(
156
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
157
- datastores=pulumi.get(__response__, 'datastores'),
158
- id=pulumi.get(__response__, 'id'),
159
- name=pulumi.get(__response__, 'name')))
134
+ ...
@@ -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__ = [
@@ -148,6 +143,9 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
148
143
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
149
144
  free_space=pulumi.get(__ret__, 'free_space'),
150
145
  id=pulumi.get(__ret__, 'id'))
146
+
147
+
148
+ @_utilities.lift_output_func(get_datastore_stats)
151
149
  def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
152
150
  datacenter_id: Optional[pulumi.Input[str]] = None,
153
151
  free_space: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
@@ -195,14 +193,4 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
195
193
  datacenter, where the name of the datastore is used as key and the free space
196
194
  as value.
197
195
  """
198
- __args__ = dict()
199
- __args__['capacity'] = capacity
200
- __args__['datacenterId'] = datacenter_id
201
- __args__['freeSpace'] = free_space
202
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
203
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreStats:getDatastoreStats', __args__, opts=opts, typ=GetDatastoreStatsResult)
204
- return __ret__.apply(lambda __response__: GetDatastoreStatsResult(
205
- capacity=pulumi.get(__response__, 'capacity'),
206
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
207
- free_space=pulumi.get(__response__, 'free_space'),
208
- id=pulumi.get(__response__, 'id')))
196
+ ...
@@ -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__ = [
@@ -134,6 +129,9 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
134
129
  id=pulumi.get(__ret__, 'id'),
135
130
  name=pulumi.get(__ret__, 'name'),
136
131
  uplinks=pulumi.get(__ret__, 'uplinks'))
132
+
133
+
134
+ @_utilities.lift_output_func(get_distributed_virtual_switch)
137
135
  def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
138
136
  name: Optional[pulumi.Input[str]] = None,
139
137
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
@@ -175,13 +173,4 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
175
173
  attribute from an empty `Datacenter` data source.
176
174
  :param str name: The name of the VDS. This can be a name or path.
177
175
  """
178
- __args__ = dict()
179
- __args__['datacenterId'] = datacenter_id
180
- __args__['name'] = name
181
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
182
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch', __args__, opts=opts, typ=GetDistributedVirtualSwitchResult)
183
- return __ret__.apply(lambda __response__: GetDistributedVirtualSwitchResult(
184
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
185
- id=pulumi.get(__response__, 'id'),
186
- name=pulumi.get(__response__, 'name'),
187
- uplinks=pulumi.get(__response__, 'uplinks')))
176
+ ...
@@ -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__ = [
@@ -128,6 +123,9 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
128
123
  id=pulumi.get(__ret__, 'id'),
129
124
  name_regex=pulumi.get(__ret__, 'name_regex'),
130
125
  type=pulumi.get(__ret__, 'type'))
126
+
127
+
128
+ @_utilities.lift_output_func(get_dynamic)
131
129
  def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
132
130
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
133
131
  type: Optional[pulumi.Input[Optional[str]]] = None,
@@ -168,14 +166,4 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
168
166
  The managed object types can be found in the managed object type section
169
167
  [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
170
168
  """
171
- __args__ = dict()
172
- __args__['filters'] = filters
173
- __args__['nameRegex'] = name_regex
174
- __args__['type'] = type
175
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
176
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDynamic:getDynamic', __args__, opts=opts, typ=GetDynamicResult)
177
- return __ret__.apply(lambda __response__: GetDynamicResult(
178
- filters=pulumi.get(__response__, 'filters'),
179
- id=pulumi.get(__response__, 'id'),
180
- name_regex=pulumi.get(__response__, 'name_regex'),
181
- type=pulumi.get(__response__, 'type')))
169
+ ...
@@ -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__ = [
@@ -92,6 +87,9 @@ def get_folder(path: Optional[str] = None,
92
87
  return AwaitableGetFolderResult(
93
88
  id=pulumi.get(__ret__, 'id'),
94
89
  path=pulumi.get(__ret__, 'path'))
90
+
91
+
92
+ @_utilities.lift_output_func(get_folder)
95
93
  def get_folder_output(path: Optional[pulumi.Input[str]] = None,
96
94
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFolderResult]:
97
95
  """
@@ -118,10 +116,4 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
118
116
  `/default-dc/vm/test-folder`. The valid folder types to be used in
119
117
  the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
120
118
  """
121
- __args__ = dict()
122
- __args__['path'] = path
123
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
124
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getFolder:getFolder', __args__, opts=opts, typ=GetFolderResult)
125
- return __ret__.apply(lambda __response__: GetFolderResult(
126
- id=pulumi.get(__response__, 'id'),
127
- path=pulumi.get(__response__, 'path')))
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
  from . import outputs
17
12
 
@@ -127,6 +122,9 @@ def get_guest_os_customization(name: Optional[str] = None,
127
122
  name=pulumi.get(__ret__, 'name'),
128
123
  specs=pulumi.get(__ret__, 'specs'),
129
124
  type=pulumi.get(__ret__, 'type'))
125
+
126
+
127
+ @_utilities.lift_output_func(get_guest_os_customization)
130
128
  def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
131
129
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
132
130
  """
@@ -137,15 +135,4 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
137
135
  :param str name: The name of the customization specification is the unique
138
136
  identifier per vCenter Server instance. ## Attribute Reference
139
137
  """
140
- __args__ = dict()
141
- __args__['name'] = name
142
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
143
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getGuestOsCustomization:getGuestOsCustomization', __args__, opts=opts, typ=GetGuestOsCustomizationResult)
144
- return __ret__.apply(lambda __response__: GetGuestOsCustomizationResult(
145
- change_version=pulumi.get(__response__, 'change_version'),
146
- description=pulumi.get(__response__, 'description'),
147
- id=pulumi.get(__response__, 'id'),
148
- last_update_time=pulumi.get(__response__, 'last_update_time'),
149
- name=pulumi.get(__response__, 'name'),
150
- specs=pulumi.get(__response__, 'specs'),
151
- type=pulumi.get(__response__, 'type')))
138
+ ...
@@ -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__ = [
@@ -119,6 +114,9 @@ def get_host(datacenter_id: Optional[str] = None,
119
114
  id=pulumi.get(__ret__, 'id'),
120
115
  name=pulumi.get(__ret__, 'name'),
121
116
  resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
117
+
118
+
119
+ @_utilities.lift_output_func(get_host)
122
120
  def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
123
121
  name: Optional[pulumi.Input[Optional[str]]] = None,
124
122
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostResult]:
@@ -147,13 +145,4 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
147
145
  > **NOTE:** When used against an ESXi host directly, this data source _always_
148
146
  returns the ESXi host's object ID, regardless of what is entered into `name`.
149
147
  """
150
- __args__ = dict()
151
- __args__['datacenterId'] = datacenter_id
152
- __args__['name'] = name
153
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
154
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHost:getHost', __args__, opts=opts, typ=GetHostResult)
155
- return __ret__.apply(lambda __response__: GetHostResult(
156
- datacenter_id=pulumi.get(__response__, 'datacenter_id'),
157
- id=pulumi.get(__response__, 'id'),
158
- name=pulumi.get(__response__, 'name'),
159
- resource_pool_id=pulumi.get(__response__, 'resource_pool_id')))
148
+ ...
@@ -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__ = [
@@ -82,6 +77,9 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
82
77
  return AwaitableGetHostBaseImagesResult(
83
78
  id=pulumi.get(__ret__, 'id'),
84
79
  versions=pulumi.get(__ret__, 'versions'))
80
+
81
+
82
+ @_utilities.lift_output_func(get_host_base_images)
85
83
  def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
86
84
  """
87
85
  The `get_host_base_images` data source can be used to get the list of ESXi
@@ -96,9 +94,4 @@ def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) ->
96
94
  base_images = vsphere.get_host_base_images()
97
95
  ```
98
96
  """
99
- __args__ = dict()
100
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
101
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostBaseImages:getHostBaseImages', __args__, opts=opts, typ=GetHostBaseImagesResult)
102
- return __ret__.apply(lambda __response__: GetHostBaseImagesResult(
103
- id=pulumi.get(__response__, 'id'),
104
- versions=pulumi.get(__response__, 'versions')))
97
+ ...
@@ -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__ = [
@@ -163,6 +158,9 @@ def get_host_pci_device(class_id: Optional[str] = None,
163
158
  name=pulumi.get(__ret__, 'name'),
164
159
  name_regex=pulumi.get(__ret__, 'name_regex'),
165
160
  vendor_id=pulumi.get(__ret__, 'vendor_id'))
161
+
162
+
163
+ @_utilities.lift_output_func(get_host_pci_device)
166
164
  def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] = None,
167
165
  host_id: Optional[pulumi.Input[str]] = None,
168
166
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
@@ -214,17 +212,4 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
214
212
  host PCI device name.
215
213
  :param str vendor_id: The hexadecimal PCI device vendor ID.
216
214
  """
217
- __args__ = dict()
218
- __args__['classId'] = class_id
219
- __args__['hostId'] = host_id
220
- __args__['nameRegex'] = name_regex
221
- __args__['vendorId'] = vendor_id
222
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
223
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostPciDevice:getHostPciDevice', __args__, opts=opts, typ=GetHostPciDeviceResult)
224
- return __ret__.apply(lambda __response__: GetHostPciDeviceResult(
225
- class_id=pulumi.get(__response__, 'class_id'),
226
- host_id=pulumi.get(__response__, 'host_id'),
227
- id=pulumi.get(__response__, 'id'),
228
- name=pulumi.get(__response__, 'name'),
229
- name_regex=pulumi.get(__response__, 'name_regex'),
230
- vendor_id=pulumi.get(__response__, 'vendor_id')))
215
+ ...
@@ -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__ = [
@@ -82,14 +77,9 @@ def get_host_thumbprint(address: Optional[str] = None,
82
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostThumbprintResult:
83
78
  """
84
79
  The `vsphere_thumbprint` data source can be used to discover the host thumbprint
85
- of an ESXi host. This can be used when adding the `Host` resource to a
86
- cluster or a vCenter Server instance.
87
-
88
- * If the ESXi host is using a certificate chain, the first one returned will be
89
- used to generate the thumbprint.
90
-
91
- * If the ESXi host has a certificate issued by a certificate authority, ensure
92
- that the the certificate authority is trusted on the system running the plan.
80
+ of an ESXi host. This can be used when adding the `Host` resource. If
81
+ the ESXi host is using a certificate chain, the first one returned will be used
82
+ to generate the thumbprint.
93
83
 
94
84
  ## Example Usage
95
85
 
@@ -103,7 +93,8 @@ def get_host_thumbprint(address: Optional[str] = None,
103
93
 
104
94
  :param str address: The address of the ESXi host to retrieve the thumbprint
105
95
  from.
106
- :param bool insecure: Disables SSL certificate verification. Default: `false`
96
+ :param bool insecure: Disables SSL certificate verification.
97
+ Default: `false`
107
98
  :param str port: The port to use connecting to the ESXi host. Default: 443
108
99
  """
109
100
  __args__ = dict()
@@ -118,20 +109,18 @@ def get_host_thumbprint(address: Optional[str] = None,
118
109
  id=pulumi.get(__ret__, 'id'),
119
110
  insecure=pulumi.get(__ret__, 'insecure'),
120
111
  port=pulumi.get(__ret__, 'port'))
112
+
113
+
114
+ @_utilities.lift_output_func(get_host_thumbprint)
121
115
  def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
122
116
  insecure: Optional[pulumi.Input[Optional[bool]]] = None,
123
117
  port: Optional[pulumi.Input[Optional[str]]] = None,
124
118
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostThumbprintResult]:
125
119
  """
126
120
  The `vsphere_thumbprint` data source can be used to discover the host thumbprint
127
- of an ESXi host. This can be used when adding the `Host` resource to a
128
- cluster or a vCenter Server instance.
129
-
130
- * If the ESXi host is using a certificate chain, the first one returned will be
131
- used to generate the thumbprint.
132
-
133
- * If the ESXi host has a certificate issued by a certificate authority, ensure
134
- that the the certificate authority is trusted on the system running the plan.
121
+ of an ESXi host. This can be used when adding the `Host` resource. If
122
+ the ESXi host is using a certificate chain, the first one returned will be used
123
+ to generate the thumbprint.
135
124
 
136
125
  ## Example Usage
137
126
 
@@ -145,17 +134,8 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
145
134
 
146
135
  :param str address: The address of the ESXi host to retrieve the thumbprint
147
136
  from.
148
- :param bool insecure: Disables SSL certificate verification. Default: `false`
137
+ :param bool insecure: Disables SSL certificate verification.
138
+ Default: `false`
149
139
  :param str port: The port to use connecting to the ESXi host. Default: 443
150
140
  """
151
- __args__ = dict()
152
- __args__['address'] = address
153
- __args__['insecure'] = insecure
154
- __args__['port'] = port
155
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
156
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostThumbprint:getHostThumbprint', __args__, opts=opts, typ=GetHostThumbprintResult)
157
- return __ret__.apply(lambda __response__: GetHostThumbprintResult(
158
- address=pulumi.get(__response__, 'address'),
159
- id=pulumi.get(__response__, 'id'),
160
- insecure=pulumi.get(__response__, 'insecure'),
161
- port=pulumi.get(__response__, 'port')))
141
+ ...
@@ -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
 
@@ -141,6 +136,9 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
141
136
  id=pulumi.get(__ret__, 'id'),
142
137
  name_regex=pulumi.get(__ret__, 'name_regex'),
143
138
  vgpu_profiles=pulumi.get(__ret__, 'vgpu_profiles'))
139
+
140
+
141
+ @_utilities.lift_output_func(get_host_vgpu_profile)
144
142
  def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
145
143
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
146
144
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostVgpuProfileResult]:
@@ -183,13 +181,4 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
183
181
 
184
182
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
185
183
  """
186
- __args__ = dict()
187
- __args__['hostId'] = host_id
188
- __args__['nameRegex'] = name_regex
189
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
190
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getHostVgpuProfile:getHostVgpuProfile', __args__, opts=opts, typ=GetHostVgpuProfileResult)
191
- return __ret__.apply(lambda __response__: GetHostVgpuProfileResult(
192
- host_id=pulumi.get(__response__, 'host_id'),
193
- id=pulumi.get(__response__, 'id'),
194
- name_regex=pulumi.get(__response__, 'name_regex'),
195
- vgpu_profiles=pulumi.get(__response__, 'vgpu_profiles')))
184
+ ...
@@ -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__ = [
@@ -147,6 +142,9 @@ def get_license(license_key: Optional[str] = None,
147
142
  name=pulumi.get(__ret__, 'name'),
148
143
  total=pulumi.get(__ret__, 'total'),
149
144
  used=pulumi.get(__ret__, 'used'))
145
+
146
+
147
+ @_utilities.lift_output_func(get_license)
150
148
  def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
151
149
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLicenseResult]:
152
150
  """
@@ -165,15 +163,4 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
165
163
 
166
164
  :param str license_key: The license key.
167
165
  """
168
- __args__ = dict()
169
- __args__['licenseKey'] = license_key
170
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
171
- __ret__ = pulumi.runtime.invoke_output('vsphere:index/getLicense:getLicense', __args__, opts=opts, typ=GetLicenseResult)
172
- return __ret__.apply(lambda __response__: GetLicenseResult(
173
- edition_key=pulumi.get(__response__, 'edition_key'),
174
- id=pulumi.get(__response__, 'id'),
175
- labels=pulumi.get(__response__, 'labels'),
176
- license_key=pulumi.get(__response__, 'license_key'),
177
- name=pulumi.get(__response__, 'name'),
178
- total=pulumi.get(__response__, 'total'),
179
- used=pulumi.get(__response__, 'used')))
166
+ ...