pulumi-vsphere 4.11.4a1728462562__py3-none-any.whl → 4.12.0__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 +1135 -6
  2. pulumi_vsphere/_utilities.py +1 -1
  3. pulumi_vsphere/compute_cluster.py +5 -0
  4. pulumi_vsphere/compute_cluster_host_group.py +5 -0
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +5 -0
  6. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +5 -0
  7. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +5 -0
  8. pulumi_vsphere/compute_cluster_vm_group.py +5 -0
  9. pulumi_vsphere/compute_cluster_vm_host_rule.py +5 -0
  10. pulumi_vsphere/config/__init__.pyi +5 -0
  11. pulumi_vsphere/config/vars.py +5 -0
  12. pulumi_vsphere/content_library.py +5 -0
  13. pulumi_vsphere/content_library_item.py +5 -0
  14. pulumi_vsphere/custom_attribute.py +5 -0
  15. pulumi_vsphere/datacenter.py +5 -0
  16. pulumi_vsphere/datastore_cluster.py +5 -0
  17. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +5 -0
  18. pulumi_vsphere/distributed_port_group.py +5 -0
  19. pulumi_vsphere/distributed_virtual_switch.py +5 -0
  20. pulumi_vsphere/dpm_host_override.py +5 -0
  21. pulumi_vsphere/drs_vm_override.py +5 -0
  22. pulumi_vsphere/entity_permissions.py +5 -0
  23. pulumi_vsphere/file.py +5 -0
  24. pulumi_vsphere/folder.py +5 -0
  25. pulumi_vsphere/get_compute_cluster.py +15 -4
  26. pulumi_vsphere/get_compute_cluster_host_group.py +15 -4
  27. pulumi_vsphere/get_content_library.py +12 -4
  28. pulumi_vsphere/get_content_library_item.py +16 -4
  29. pulumi_vsphere/get_custom_attribute.py +13 -4
  30. pulumi_vsphere/get_datacenter.py +29 -7
  31. pulumi_vsphere/get_datastore.py +16 -4
  32. pulumi_vsphere/get_datastore_cluster.py +30 -5
  33. pulumi_vsphere/get_datastore_stats.py +16 -4
  34. pulumi_vsphere/get_distributed_virtual_switch.py +15 -4
  35. pulumi_vsphere/get_dynamic.py +16 -4
  36. pulumi_vsphere/get_folder.py +12 -4
  37. pulumi_vsphere/get_guest_os_customization.py +17 -4
  38. pulumi_vsphere/get_host.py +15 -4
  39. pulumi_vsphere/get_host_base_images.py +11 -4
  40. pulumi_vsphere/get_host_pci_device.py +19 -4
  41. pulumi_vsphere/get_host_thumbprint.py +16 -4
  42. pulumi_vsphere/get_host_vgpu_profile.py +15 -4
  43. pulumi_vsphere/get_license.py +17 -4
  44. pulumi_vsphere/get_network.py +65 -5
  45. pulumi_vsphere/get_ovf_vm_template.py +55 -4
  46. pulumi_vsphere/get_policy.py +12 -4
  47. pulumi_vsphere/get_resource_pool.py +14 -4
  48. pulumi_vsphere/get_role.py +18 -4
  49. pulumi_vsphere/get_tag.py +15 -4
  50. pulumi_vsphere/get_tag_category.py +15 -4
  51. pulumi_vsphere/get_vapp_container.py +14 -4
  52. pulumi_vsphere/get_virtual_machine.py +145 -5
  53. pulumi_vsphere/get_vmfs_disks.py +17 -4
  54. pulumi_vsphere/guest_os_customization.py +5 -0
  55. pulumi_vsphere/ha_vm_override.py +5 -0
  56. pulumi_vsphere/host.py +5 -0
  57. pulumi_vsphere/host_port_group.py +5 -0
  58. pulumi_vsphere/host_virtual_switch.py +5 -0
  59. pulumi_vsphere/license.py +5 -0
  60. pulumi_vsphere/nas_datastore.py +5 -0
  61. pulumi_vsphere/offline_software_depot.py +5 -0
  62. pulumi_vsphere/outputs.py +45 -0
  63. pulumi_vsphere/provider.py +5 -0
  64. pulumi_vsphere/pulumi-plugin.json +1 -1
  65. pulumi_vsphere/resource_pool.py +5 -0
  66. pulumi_vsphere/role.py +5 -0
  67. pulumi_vsphere/storage_drs_vm_override.py +5 -0
  68. pulumi_vsphere/supervisor.py +5 -0
  69. pulumi_vsphere/tag.py +5 -0
  70. pulumi_vsphere/tag_category.py +5 -0
  71. pulumi_vsphere/vapp_container.py +5 -0
  72. pulumi_vsphere/vapp_entity.py +5 -0
  73. pulumi_vsphere/virtual_disk.py +5 -0
  74. pulumi_vsphere/virtual_machine.py +52 -0
  75. pulumi_vsphere/virtual_machine_class.py +5 -0
  76. pulumi_vsphere/virtual_machine_snapshot.py +5 -0
  77. pulumi_vsphere/vm_storage_policy.py +5 -0
  78. pulumi_vsphere/vmfs_datastore.py +5 -0
  79. pulumi_vsphere/vnic.py +5 -0
  80. {pulumi_vsphere-4.11.4a1728462562.dist-info → pulumi_vsphere-4.12.0.dist-info}/METADATA +3 -2
  81. pulumi_vsphere-4.12.0.dist-info/RECORD +86 -0
  82. {pulumi_vsphere-4.11.4a1728462562.dist-info → pulumi_vsphere-4.12.0.dist-info}/WHEEL +1 -1
  83. pulumi_vsphere-4.11.4a1728462562.dist-info/RECORD +0 -86
  84. {pulumi_vsphere-4.11.4a1728462562.dist-info → pulumi_vsphere-4.12.0.dist-info}/top_level.txt +0 -0
@@ -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__ = [
@@ -119,9 +124,6 @@ def get_datastore(datacenter_id: Optional[str] = None,
119
124
  id=pulumi.get(__ret__, 'id'),
120
125
  name=pulumi.get(__ret__, 'name'),
121
126
  stats=pulumi.get(__ret__, 'stats'))
122
-
123
-
124
- @_utilities.lift_output_func(get_datastore)
125
127
  def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
126
128
  name: Optional[pulumi.Input[str]] = None,
127
129
  stats: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
@@ -153,4 +155,14 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] =
153
155
  total datastore capacity is represented as `capacity` and the free remaining
154
156
  disk is represented as `free`.
155
157
  """
156
- ...
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')))
@@ -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__ = [
@@ -21,10 +26,13 @@ class GetDatastoreClusterResult:
21
26
  """
22
27
  A collection of values returned by getDatastoreCluster.
23
28
  """
24
- def __init__(__self__, datacenter_id=None, id=None, name=None):
29
+ def __init__(__self__, datacenter_id=None, datastores=None, id=None, name=None):
25
30
  if datacenter_id and not isinstance(datacenter_id, str):
26
31
  raise TypeError("Expected argument 'datacenter_id' to be a str")
27
32
  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)
28
36
  if id and not isinstance(id, str):
29
37
  raise TypeError("Expected argument 'id' to be a str")
30
38
  pulumi.set(__self__, "id", id)
@@ -37,6 +45,15 @@ class GetDatastoreClusterResult:
37
45
  def datacenter_id(self) -> Optional[str]:
38
46
  return pulumi.get(self, "datacenter_id")
39
47
 
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
+
40
57
  @property
41
58
  @pulumi.getter
42
59
  def id(self) -> str:
@@ -58,6 +75,7 @@ class AwaitableGetDatastoreClusterResult(GetDatastoreClusterResult):
58
75
  yield self
59
76
  return GetDatastoreClusterResult(
60
77
  datacenter_id=self.datacenter_id,
78
+ datastores=self.datastores,
61
79
  id=self.id,
62
80
  name=self.name)
63
81
 
@@ -98,11 +116,9 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
98
116
 
99
117
  return AwaitableGetDatastoreClusterResult(
100
118
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
119
+ datastores=pulumi.get(__ret__, 'datastores'),
101
120
  id=pulumi.get(__ret__, 'id'),
102
121
  name=pulumi.get(__ret__, 'name'))
103
-
104
-
105
- @_utilities.lift_output_func(get_datastore_cluster)
106
122
  def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
107
123
  name: Optional[pulumi.Input[str]] = None,
108
124
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatastoreClusterResult]:
@@ -131,4 +147,13 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
131
147
  `Datacenter` data source.
132
148
  :param str name: The name or absolute path to the datastore cluster.
133
149
  """
134
- ...
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')))
@@ -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__ = [
@@ -143,9 +148,6 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
143
148
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
144
149
  free_space=pulumi.get(__ret__, 'free_space'),
145
150
  id=pulumi.get(__ret__, 'id'))
146
-
147
-
148
- @_utilities.lift_output_func(get_datastore_stats)
149
151
  def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
150
152
  datacenter_id: Optional[pulumi.Input[str]] = None,
151
153
  free_space: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
@@ -193,4 +195,14 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
193
195
  datacenter, where the name of the datastore is used as key and the free space
194
196
  as value.
195
197
  """
196
- ...
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')))
@@ -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__ = [
@@ -129,9 +134,6 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
129
134
  id=pulumi.get(__ret__, 'id'),
130
135
  name=pulumi.get(__ret__, 'name'),
131
136
  uplinks=pulumi.get(__ret__, 'uplinks'))
132
-
133
-
134
- @_utilities.lift_output_func(get_distributed_virtual_switch)
135
137
  def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
136
138
  name: Optional[pulumi.Input[str]] = None,
137
139
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
@@ -173,4 +175,13 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
173
175
  attribute from an empty `Datacenter` data source.
174
176
  :param str name: The name of the VDS. This can be a name or path.
175
177
  """
176
- ...
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')))
@@ -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__ = [
@@ -123,9 +128,6 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
123
128
  id=pulumi.get(__ret__, 'id'),
124
129
  name_regex=pulumi.get(__ret__, 'name_regex'),
125
130
  type=pulumi.get(__ret__, 'type'))
126
-
127
-
128
- @_utilities.lift_output_func(get_dynamic)
129
131
  def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
130
132
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
131
133
  type: Optional[pulumi.Input[Optional[str]]] = None,
@@ -166,4 +168,14 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
166
168
  The managed object types can be found in the managed object type section
167
169
  [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
168
170
  """
169
- ...
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')))
@@ -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__ = [
@@ -87,9 +92,6 @@ def get_folder(path: Optional[str] = None,
87
92
  return AwaitableGetFolderResult(
88
93
  id=pulumi.get(__ret__, 'id'),
89
94
  path=pulumi.get(__ret__, 'path'))
90
-
91
-
92
- @_utilities.lift_output_func(get_folder)
93
95
  def get_folder_output(path: Optional[pulumi.Input[str]] = None,
94
96
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFolderResult]:
95
97
  """
@@ -116,4 +118,10 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
116
118
  `/default-dc/vm/test-folder`. The valid folder types to be used in
117
119
  the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
118
120
  """
119
- ...
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')))
@@ -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
  from . import outputs
12
17
 
@@ -122,9 +127,6 @@ def get_guest_os_customization(name: Optional[str] = None,
122
127
  name=pulumi.get(__ret__, 'name'),
123
128
  specs=pulumi.get(__ret__, 'specs'),
124
129
  type=pulumi.get(__ret__, 'type'))
125
-
126
-
127
- @_utilities.lift_output_func(get_guest_os_customization)
128
130
  def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
129
131
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGuestOsCustomizationResult]:
130
132
  """
@@ -135,4 +137,15 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None,
135
137
  :param str name: The name of the customization specification is the unique
136
138
  identifier per vCenter Server instance. ## Attribute Reference
137
139
  """
138
- ...
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')))
@@ -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__ = [
@@ -114,9 +119,6 @@ def get_host(datacenter_id: Optional[str] = None,
114
119
  id=pulumi.get(__ret__, 'id'),
115
120
  name=pulumi.get(__ret__, 'name'),
116
121
  resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
117
-
118
-
119
- @_utilities.lift_output_func(get_host)
120
122
  def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
121
123
  name: Optional[pulumi.Input[Optional[str]]] = None,
122
124
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostResult]:
@@ -145,4 +147,13 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None,
145
147
  > **NOTE:** When used against an ESXi host directly, this data source _always_
146
148
  returns the ESXi host's object ID, regardless of what is entered into `name`.
147
149
  """
148
- ...
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')))
@@ -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__ = [
@@ -77,9 +82,6 @@ def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
77
82
  return AwaitableGetHostBaseImagesResult(
78
83
  id=pulumi.get(__ret__, 'id'),
79
84
  versions=pulumi.get(__ret__, 'versions'))
80
-
81
-
82
- @_utilities.lift_output_func(get_host_base_images)
83
85
  def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
84
86
  """
85
87
  The `get_host_base_images` data source can be used to get the list of ESXi
@@ -94,4 +96,9 @@ def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) ->
94
96
  base_images = vsphere.get_host_base_images()
95
97
  ```
96
98
  """
97
- ...
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')))
@@ -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__ = [
@@ -158,9 +163,6 @@ def get_host_pci_device(class_id: Optional[str] = None,
158
163
  name=pulumi.get(__ret__, 'name'),
159
164
  name_regex=pulumi.get(__ret__, 'name_regex'),
160
165
  vendor_id=pulumi.get(__ret__, 'vendor_id'))
161
-
162
-
163
- @_utilities.lift_output_func(get_host_pci_device)
164
166
  def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] = None,
165
167
  host_id: Optional[pulumi.Input[str]] = None,
166
168
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
@@ -212,4 +214,17 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] =
212
214
  host PCI device name.
213
215
  :param str vendor_id: The hexadecimal PCI device vendor ID.
214
216
  """
215
- ...
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')))
@@ -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__ = [
@@ -113,9 +118,6 @@ def get_host_thumbprint(address: Optional[str] = None,
113
118
  id=pulumi.get(__ret__, 'id'),
114
119
  insecure=pulumi.get(__ret__, 'insecure'),
115
120
  port=pulumi.get(__ret__, 'port'))
116
-
117
-
118
- @_utilities.lift_output_func(get_host_thumbprint)
119
121
  def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
120
122
  insecure: Optional[pulumi.Input[Optional[bool]]] = None,
121
123
  port: Optional[pulumi.Input[Optional[str]]] = None,
@@ -146,4 +148,14 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None,
146
148
  :param bool insecure: Disables SSL certificate verification. Default: `false`
147
149
  :param str port: The port to use connecting to the ESXi host. Default: 443
148
150
  """
149
- ...
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')))
@@ -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
  from . import outputs
12
17
 
@@ -136,9 +141,6 @@ def get_host_vgpu_profile(host_id: Optional[str] = None,
136
141
  id=pulumi.get(__ret__, 'id'),
137
142
  name_regex=pulumi.get(__ret__, 'name_regex'),
138
143
  vgpu_profiles=pulumi.get(__ret__, 'vgpu_profiles'))
139
-
140
-
141
- @_utilities.lift_output_func(get_host_vgpu_profile)
142
144
  def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
143
145
  name_regex: Optional[pulumi.Input[Optional[str]]] = None,
144
146
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostVgpuProfileResult]:
@@ -181,4 +183,13 @@ def get_host_vgpu_profile_output(host_id: Optional[pulumi.Input[str]] = None,
181
183
 
182
184
  [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
183
185
  """
184
- ...
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')))
@@ -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__ = [
@@ -142,9 +147,6 @@ def get_license(license_key: Optional[str] = None,
142
147
  name=pulumi.get(__ret__, 'name'),
143
148
  total=pulumi.get(__ret__, 'total'),
144
149
  used=pulumi.get(__ret__, 'used'))
145
-
146
-
147
- @_utilities.lift_output_func(get_license)
148
150
  def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
149
151
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetLicenseResult]:
150
152
  """
@@ -163,4 +165,15 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
163
165
 
164
166
  :param str license_key: The license key.
165
167
  """
166
- ...
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')))