pulumi-vsphere 4.10.0a1709017641__py3-none-any.whl → 4.17.0a1763710194__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 (89) hide show
  1. pulumi_vsphere/__init__.py +51 -1
  2. pulumi_vsphere/_inputs.py +2568 -1025
  3. pulumi_vsphere/_utilities.py +50 -10
  4. pulumi_vsphere/compute_cluster.py +1564 -2373
  5. pulumi_vsphere/compute_cluster_host_group.py +191 -55
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
  9. pulumi_vsphere/compute_cluster_vm_group.py +256 -55
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
  11. pulumi_vsphere/config/__init__.py +2 -1
  12. pulumi_vsphere/config/__init__.pyi +7 -2
  13. pulumi_vsphere/config/vars.py +20 -15
  14. pulumi_vsphere/configuration_profile.py +286 -0
  15. pulumi_vsphere/content_library.py +177 -71
  16. pulumi_vsphere/content_library_item.py +252 -106
  17. pulumi_vsphere/custom_attribute.py +118 -38
  18. pulumi_vsphere/datacenter.py +128 -107
  19. pulumi_vsphere/datastore_cluster.py +636 -731
  20. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
  21. pulumi_vsphere/distributed_port_group.py +1129 -967
  22. pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
  23. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
  24. pulumi_vsphere/dpm_host_override.py +222 -72
  25. pulumi_vsphere/drs_vm_override.py +236 -72
  26. pulumi_vsphere/entity_permissions.py +96 -69
  27. pulumi_vsphere/file.py +173 -178
  28. pulumi_vsphere/folder.py +236 -113
  29. pulumi_vsphere/get_compute_cluster.py +34 -23
  30. pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
  31. pulumi_vsphere/get_configuration_profile.py +145 -0
  32. pulumi_vsphere/get_content_library.py +33 -21
  33. pulumi_vsphere/get_content_library_item.py +47 -31
  34. pulumi_vsphere/get_custom_attribute.py +26 -17
  35. pulumi_vsphere/get_datacenter.py +40 -18
  36. pulumi_vsphere/get_datastore.py +60 -24
  37. pulumi_vsphere/get_datastore_cluster.py +47 -22
  38. pulumi_vsphere/get_datastore_stats.py +204 -0
  39. pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
  40. pulumi_vsphere/get_dynamic.py +55 -45
  41. pulumi_vsphere/get_folder.py +163 -25
  42. pulumi_vsphere/get_guest_os_customization.py +68 -37
  43. pulumi_vsphere/get_host.py +34 -23
  44. pulumi_vsphere/get_host_base_images.py +104 -0
  45. pulumi_vsphere/get_host_pci_device.py +78 -35
  46. pulumi_vsphere/get_host_thumbprint.py +58 -38
  47. pulumi_vsphere/get_host_vgpu_profile.py +195 -0
  48. pulumi_vsphere/get_license.py +44 -28
  49. pulumi_vsphere/get_network.py +157 -46
  50. pulumi_vsphere/get_ovf_vm_template.py +184 -301
  51. pulumi_vsphere/get_policy.py +23 -15
  52. pulumi_vsphere/get_resource_pool.py +107 -40
  53. pulumi_vsphere/get_role.py +49 -35
  54. pulumi_vsphere/get_tag.py +34 -23
  55. pulumi_vsphere/get_tag_category.py +32 -21
  56. pulumi_vsphere/get_vapp_container.py +31 -21
  57. pulumi_vsphere/get_virtual_machine.py +499 -287
  58. pulumi_vsphere/get_vmfs_disks.py +42 -29
  59. pulumi_vsphere/guest_os_customization.py +135 -79
  60. pulumi_vsphere/ha_vm_override.py +470 -577
  61. pulumi_vsphere/host.py +515 -262
  62. pulumi_vsphere/host_port_group.py +352 -355
  63. pulumi_vsphere/host_virtual_switch.py +580 -580
  64. pulumi_vsphere/license.py +110 -92
  65. pulumi_vsphere/nas_datastore.py +398 -270
  66. pulumi_vsphere/offline_software_depot.py +190 -0
  67. pulumi_vsphere/outputs.py +1582 -1027
  68. pulumi_vsphere/provider.py +172 -152
  69. pulumi_vsphere/pulumi-plugin.json +2 -1
  70. pulumi_vsphere/resource_pool.py +357 -273
  71. pulumi_vsphere/role.py +79 -47
  72. pulumi_vsphere/storage_drs_vm_override.py +225 -89
  73. pulumi_vsphere/supervisor.py +1064 -0
  74. pulumi_vsphere/tag.py +217 -55
  75. pulumi_vsphere/tag_category.py +158 -72
  76. pulumi_vsphere/vapp_container.py +425 -259
  77. pulumi_vsphere/vapp_entity.py +324 -174
  78. pulumi_vsphere/virtual_disk.py +245 -153
  79. pulumi_vsphere/virtual_machine.py +1696 -1836
  80. pulumi_vsphere/virtual_machine_class.py +448 -0
  81. pulumi_vsphere/virtual_machine_snapshot.py +137 -131
  82. pulumi_vsphere/vm_storage_policy.py +160 -154
  83. pulumi_vsphere/vmfs_datastore.py +460 -186
  84. pulumi_vsphere/vnic.py +249 -231
  85. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
  86. pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
  87. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
  88. pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
  89. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,204 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
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__ = [
18
+ 'GetDatastoreStatsResult',
19
+ 'AwaitableGetDatastoreStatsResult',
20
+ 'get_datastore_stats',
21
+ 'get_datastore_stats_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetDatastoreStatsResult:
26
+ """
27
+ A collection of values returned by getDatastoreStats.
28
+ """
29
+ def __init__(__self__, capacity=None, datacenter_id=None, free_space=None, id=None):
30
+ if capacity and not isinstance(capacity, dict):
31
+ raise TypeError("Expected argument 'capacity' to be a dict")
32
+ pulumi.set(__self__, "capacity", capacity)
33
+ if datacenter_id and not isinstance(datacenter_id, str):
34
+ raise TypeError("Expected argument 'datacenter_id' to be a str")
35
+ pulumi.set(__self__, "datacenter_id", datacenter_id)
36
+ if free_space and not isinstance(free_space, dict):
37
+ raise TypeError("Expected argument 'free_space' to be a dict")
38
+ pulumi.set(__self__, "free_space", free_space)
39
+ if id and not isinstance(id, str):
40
+ raise TypeError("Expected argument 'id' to be a str")
41
+ pulumi.set(__self__, "id", id)
42
+
43
+ @_builtins.property
44
+ @pulumi.getter
45
+ def capacity(self) -> Optional[Mapping[str, _builtins.str]]:
46
+ """
47
+ A mapping of the capacity for all datastore in the datacenter,
48
+ where the name of the datastore is used as key and the capacity as value.
49
+ """
50
+ return pulumi.get(self, "capacity")
51
+
52
+ @_builtins.property
53
+ @pulumi.getter(name="datacenterId")
54
+ def datacenter_id(self) -> _builtins.str:
55
+ """
56
+ The [managed object reference ID][docs-about-morefs] of the
57
+ datacenter the datastores are located in.
58
+ """
59
+ return pulumi.get(self, "datacenter_id")
60
+
61
+ @_builtins.property
62
+ @pulumi.getter(name="freeSpace")
63
+ def free_space(self) -> Optional[Mapping[str, _builtins.str]]:
64
+ """
65
+ A mapping of the free space for each datastore in the
66
+ datacenter, where the name of the datastore is used as key and the free space
67
+ as value.
68
+ """
69
+ return pulumi.get(self, "free_space")
70
+
71
+ @_builtins.property
72
+ @pulumi.getter
73
+ def id(self) -> _builtins.str:
74
+ """
75
+ The provider-assigned unique ID for this managed resource.
76
+ """
77
+ return pulumi.get(self, "id")
78
+
79
+
80
+ class AwaitableGetDatastoreStatsResult(GetDatastoreStatsResult):
81
+ # pylint: disable=using-constant-test
82
+ def __await__(self):
83
+ if False:
84
+ yield self
85
+ return GetDatastoreStatsResult(
86
+ capacity=self.capacity,
87
+ datacenter_id=self.datacenter_id,
88
+ free_space=self.free_space,
89
+ id=self.id)
90
+
91
+
92
+ def get_datastore_stats(capacity: Optional[Mapping[str, _builtins.str]] = None,
93
+ datacenter_id: Optional[_builtins.str] = None,
94
+ free_space: Optional[Mapping[str, _builtins.str]] = None,
95
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
96
+ """
97
+ The `get_datastore_stats` data source can be used to retrieve the usage
98
+ stats of all vSphere datastore objects in a datacenter. This can then be used as
99
+ a standalone data source to get information required as input to other data
100
+ sources.
101
+
102
+ ## Example Usage
103
+
104
+ ```python
105
+ import pulumi
106
+ import pulumi_vsphere as vsphere
107
+
108
+ datacenter = vsphere.get_datacenter(name="dc-01")
109
+ datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
110
+ ```
111
+
112
+ A useful example of this data source would be to determine the datastore with
113
+ the most free space. For example, in addition to the above:
114
+
115
+ Create an `outputs.tf` like that:
116
+
117
+ ```python
118
+ import pulumi
119
+
120
+ pulumi.export("maxFreeSpaceName", their_max_free_space_name)
121
+ pulumi.export("maxFreeSpace", their_max_free_space)
122
+ ```
123
+
124
+ and a `locals.tf` like that:
125
+
126
+
127
+ :param Mapping[str, _builtins.str] capacity: A mapping of the capacity for all datastore in the datacenter,
128
+ where the name of the datastore is used as key and the capacity as value.
129
+ :param _builtins.str datacenter_id: The
130
+ [managed object reference ID][docs-about-morefs] of the datacenter the
131
+ datastores are located in. For default datacenters, use the `id` attribute
132
+ from an empty `Datacenter` data source.
133
+ :param Mapping[str, _builtins.str] free_space: A mapping of the free space for each datastore in the
134
+ datacenter, where the name of the datastore is used as key and the free space
135
+ as value.
136
+ """
137
+ __args__ = dict()
138
+ __args__['capacity'] = capacity
139
+ __args__['datacenterId'] = datacenter_id
140
+ __args__['freeSpace'] = free_space
141
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
142
+ __ret__ = pulumi.runtime.invoke('vsphere:index/getDatastoreStats:getDatastoreStats', __args__, opts=opts, typ=GetDatastoreStatsResult).value
143
+
144
+ return AwaitableGetDatastoreStatsResult(
145
+ capacity=pulumi.get(__ret__, 'capacity'),
146
+ datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
147
+ free_space=pulumi.get(__ret__, 'free_space'),
148
+ id=pulumi.get(__ret__, 'id'))
149
+ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
150
+ datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
151
+ free_space: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
152
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatastoreStatsResult]:
153
+ """
154
+ The `get_datastore_stats` data source can be used to retrieve the usage
155
+ stats of all vSphere datastore objects in a datacenter. This can then be used as
156
+ a standalone data source to get information required as input to other data
157
+ sources.
158
+
159
+ ## Example Usage
160
+
161
+ ```python
162
+ import pulumi
163
+ import pulumi_vsphere as vsphere
164
+
165
+ datacenter = vsphere.get_datacenter(name="dc-01")
166
+ datastore_stats = vsphere.get_datastore_stats(datacenter_id=datacenter.id)
167
+ ```
168
+
169
+ A useful example of this data source would be to determine the datastore with
170
+ the most free space. For example, in addition to the above:
171
+
172
+ Create an `outputs.tf` like that:
173
+
174
+ ```python
175
+ import pulumi
176
+
177
+ pulumi.export("maxFreeSpaceName", their_max_free_space_name)
178
+ pulumi.export("maxFreeSpace", their_max_free_space)
179
+ ```
180
+
181
+ and a `locals.tf` like that:
182
+
183
+
184
+ :param Mapping[str, _builtins.str] capacity: A mapping of the capacity for all datastore in the datacenter,
185
+ where the name of the datastore is used as key and the capacity as value.
186
+ :param _builtins.str datacenter_id: The
187
+ [managed object reference ID][docs-about-morefs] of the datacenter the
188
+ datastores are located in. For default datacenters, use the `id` attribute
189
+ from an empty `Datacenter` data source.
190
+ :param Mapping[str, _builtins.str] free_space: A mapping of the free space for each datastore in the
191
+ datacenter, where the name of the datastore is used as key and the free space
192
+ as value.
193
+ """
194
+ __args__ = dict()
195
+ __args__['capacity'] = capacity
196
+ __args__['datacenterId'] = datacenter_id
197
+ __args__['freeSpace'] = free_space
198
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
199
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreStats:getDatastoreStats', __args__, opts=opts, typ=GetDatastoreStatsResult)
200
+ return __ret__.apply(lambda __response__: GetDatastoreStatsResult(
201
+ capacity=pulumi.get(__response__, 'capacity'),
202
+ datacenter_id=pulumi.get(__response__, 'datacenter_id'),
203
+ free_space=pulumi.get(__response__, 'free_space'),
204
+ id=pulumi.get(__response__, 'id')))
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
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__ = [
@@ -35,27 +40,27 @@ class GetDistributedVirtualSwitchResult:
35
40
  raise TypeError("Expected argument 'uplinks' to be a list")
36
41
  pulumi.set(__self__, "uplinks", uplinks)
37
42
 
38
- @property
43
+ @_builtins.property
39
44
  @pulumi.getter(name="datacenterId")
40
- def datacenter_id(self) -> Optional[str]:
45
+ def datacenter_id(self) -> Optional[_builtins.str]:
41
46
  return pulumi.get(self, "datacenter_id")
42
47
 
43
- @property
48
+ @_builtins.property
44
49
  @pulumi.getter
45
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
46
51
  """
47
52
  The provider-assigned unique ID for this managed resource.
48
53
  """
49
54
  return pulumi.get(self, "id")
50
55
 
51
- @property
56
+ @_builtins.property
52
57
  @pulumi.getter
53
- def name(self) -> str:
58
+ def name(self) -> _builtins.str:
54
59
  return pulumi.get(self, "name")
55
60
 
56
- @property
61
+ @_builtins.property
57
62
  @pulumi.getter
58
- def uplinks(self) -> Sequence[str]:
63
+ def uplinks(self) -> Sequence[_builtins.str]:
59
64
  """
60
65
  The list of the uplinks on this vSphere distributed switch, as per the
61
66
  `uplinks` argument to the
@@ -77,8 +82,8 @@ class AwaitableGetDistributedVirtualSwitchResult(GetDistributedVirtualSwitchResu
77
82
  uplinks=self.uplinks)
78
83
 
79
84
 
80
- def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
81
- name: Optional[str] = None,
85
+ def get_distributed_virtual_switch(datacenter_id: Optional[_builtins.str] = None,
86
+ name: Optional[_builtins.str] = None,
82
87
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDistributedVirtualSwitchResult:
83
88
  """
84
89
  The `DistributedVirtualSwitch` data source can be used to discover
@@ -105,17 +110,18 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
105
110
  vds = vsphere.get_distributed_virtual_switch(name="vds-01",
106
111
  datacenter_id=datacenter.id)
107
112
  dvpg = vsphere.DistributedPortGroup("dvpg",
113
+ name="dvpg-01",
108
114
  distributed_virtual_switch_uuid=vds.id,
109
115
  active_uplinks=[vds.uplinks[0]],
110
116
  standby_uplinks=[vds.uplinks[1]])
111
117
  ```
112
118
 
113
119
 
114
- :param str datacenter_id: The managed object reference ID
120
+ :param _builtins.str datacenter_id: The managed object reference ID
115
121
  of the datacenter the VDS is located in. This can be omitted if the search
116
122
  path used in `name` is an absolute path. For default datacenters, use the `id`
117
123
  attribute from an empty `Datacenter` data source.
118
- :param str name: The name of the VDS. This can be a name or path.
124
+ :param _builtins.str name: The name of the VDS. This can be a name or path.
119
125
  """
120
126
  __args__ = dict()
121
127
  __args__['datacenterId'] = datacenter_id
@@ -128,12 +134,9 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
128
134
  id=pulumi.get(__ret__, 'id'),
129
135
  name=pulumi.get(__ret__, 'name'),
130
136
  uplinks=pulumi.get(__ret__, 'uplinks'))
131
-
132
-
133
- @_utilities.lift_output_func(get_distributed_virtual_switch)
134
- def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
135
- name: Optional[pulumi.Input[str]] = None,
136
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
137
+ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
138
+ name: Optional[pulumi.Input[_builtins.str]] = None,
139
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
137
140
  """
138
141
  The `DistributedVirtualSwitch` data source can be used to discover
139
142
  the ID and uplink data of a of a vSphere distributed switch (VDS). This
@@ -159,16 +162,26 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
159
162
  vds = vsphere.get_distributed_virtual_switch(name="vds-01",
160
163
  datacenter_id=datacenter.id)
161
164
  dvpg = vsphere.DistributedPortGroup("dvpg",
165
+ name="dvpg-01",
162
166
  distributed_virtual_switch_uuid=vds.id,
163
167
  active_uplinks=[vds.uplinks[0]],
164
168
  standby_uplinks=[vds.uplinks[1]])
165
169
  ```
166
170
 
167
171
 
168
- :param str datacenter_id: The managed object reference ID
172
+ :param _builtins.str datacenter_id: The managed object reference ID
169
173
  of the datacenter the VDS is located in. This can be omitted if the search
170
174
  path used in `name` is an absolute path. For default datacenters, use the `id`
171
175
  attribute from an empty `Datacenter` data source.
172
- :param str name: The name of the VDS. This can be a name or path.
176
+ :param _builtins.str name: The name of the VDS. This can be a name or path.
173
177
  """
174
- ...
178
+ __args__ = dict()
179
+ __args__['datacenterId'] = datacenter_id
180
+ __args__['name'] = name
181
+ opts = pulumi.InvokeOutputOptions.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')))
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
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__ = [
@@ -35,27 +40,27 @@ class GetDynamicResult:
35
40
  raise TypeError("Expected argument 'type' to be a str")
36
41
  pulumi.set(__self__, "type", type)
37
42
 
38
- @property
43
+ @_builtins.property
39
44
  @pulumi.getter
40
- def filters(self) -> Sequence[str]:
45
+ def filters(self) -> Sequence[_builtins.str]:
41
46
  return pulumi.get(self, "filters")
42
47
 
43
- @property
48
+ @_builtins.property
44
49
  @pulumi.getter
45
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
46
51
  """
47
52
  The provider-assigned unique ID for this managed resource.
48
53
  """
49
54
  return pulumi.get(self, "id")
50
55
 
51
- @property
56
+ @_builtins.property
52
57
  @pulumi.getter(name="nameRegex")
53
- def name_regex(self) -> Optional[str]:
58
+ def name_regex(self) -> Optional[_builtins.str]:
54
59
  return pulumi.get(self, "name_regex")
55
60
 
56
- @property
61
+ @_builtins.property
57
62
  @pulumi.getter
58
- def type(self) -> Optional[str]:
63
+ def type(self) -> Optional[_builtins.str]:
59
64
  return pulumi.get(self, "type")
60
65
 
61
66
 
@@ -71,16 +76,15 @@ class AwaitableGetDynamicResult(GetDynamicResult):
71
76
  type=self.type)
72
77
 
73
78
 
74
- def get_dynamic(filters: Optional[Sequence[str]] = None,
75
- name_regex: Optional[str] = None,
76
- type: Optional[str] = None,
79
+ def get_dynamic(filters: Optional[Sequence[_builtins.str]] = None,
80
+ name_regex: Optional[_builtins.str] = None,
81
+ type: Optional[_builtins.str] = None,
77
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDynamicResult:
78
83
  """
79
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
80
-
81
- The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
82
- of any tagged managed object in vCenter Server by providing a list of tag IDs
83
- and an optional regular expression to filter objects by name.
84
+ The `get_dynamic` data source can be used to get the
85
+ [managed object reference ID][docs-about-morefs] of any tagged managed object in
86
+ vCenter Server by providing a list of tag IDs and an optional regular expression
87
+ to filter objects by name.
84
88
 
85
89
  ## Example Usage
86
90
 
@@ -90,9 +94,9 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
90
94
 
91
95
  category = vsphere.get_tag_category(name="SomeCategory")
92
96
  tag1 = vsphere.get_tag(name="FirstTag",
93
- category_id=data["vsphere_tag_category"]["cat"]["id"])
97
+ category_id=cat["id"])
94
98
  tag2 = vsphere.get_tag(name="SecondTag",
95
- category_id=data["vsphere_tag_category"]["cat"]["id"])
99
+ category_id=cat["id"])
96
100
  dyn = vsphere.get_dynamic(filters=[
97
101
  tag1.id,
98
102
  tag1.id,
@@ -102,13 +106,13 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
102
106
  ```
103
107
 
104
108
 
105
- :param Sequence[str] filters: A list of tag IDs that must be present on an object to
109
+ :param Sequence[_builtins.str] filters: A list of tag IDs that must be present on an object to
106
110
  be a match.
107
- :param str name_regex: A regular expression that will be used to match
108
- the object's name.
109
- :param str type: The managed object type the returned object must match.
111
+ :param _builtins.str name_regex: A regular expression that will be used to match the
112
+ object's name.
113
+ :param _builtins.str type: The managed object type the returned object must match.
110
114
  The managed object types can be found in the managed object type section
111
- [here](https://developer.vmware.com/apis/968/vsphere).
115
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
112
116
  """
113
117
  __args__ = dict()
114
118
  __args__['filters'] = filters
@@ -122,19 +126,15 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
122
126
  id=pulumi.get(__ret__, 'id'),
123
127
  name_regex=pulumi.get(__ret__, 'name_regex'),
124
128
  type=pulumi.get(__ret__, 'type'))
125
-
126
-
127
- @_utilities.lift_output_func(get_dynamic)
128
- def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
129
- name_regex: Optional[pulumi.Input[Optional[str]]] = None,
130
- type: Optional[pulumi.Input[Optional[str]]] = None,
131
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDynamicResult]:
129
+ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[_builtins.str]]] = None,
130
+ name_regex: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
131
+ type: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
132
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDynamicResult]:
132
133
  """
133
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
134
-
135
- The `get_dynamic` data source can be used to get the [managed object reference ID][docs-about-morefs]
136
- of any tagged managed object in vCenter Server by providing a list of tag IDs
137
- and an optional regular expression to filter objects by name.
134
+ The `get_dynamic` data source can be used to get the
135
+ [managed object reference ID][docs-about-morefs] of any tagged managed object in
136
+ vCenter Server by providing a list of tag IDs and an optional regular expression
137
+ to filter objects by name.
138
138
 
139
139
  ## Example Usage
140
140
 
@@ -144,9 +144,9 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
144
144
 
145
145
  category = vsphere.get_tag_category(name="SomeCategory")
146
146
  tag1 = vsphere.get_tag(name="FirstTag",
147
- category_id=data["vsphere_tag_category"]["cat"]["id"])
147
+ category_id=cat["id"])
148
148
  tag2 = vsphere.get_tag(name="SecondTag",
149
- category_id=data["vsphere_tag_category"]["cat"]["id"])
149
+ category_id=cat["id"])
150
150
  dyn = vsphere.get_dynamic(filters=[
151
151
  tag1.id,
152
152
  tag1.id,
@@ -156,12 +156,22 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
156
156
  ```
157
157
 
158
158
 
159
- :param Sequence[str] filters: A list of tag IDs that must be present on an object to
159
+ :param Sequence[_builtins.str] filters: A list of tag IDs that must be present on an object to
160
160
  be a match.
161
- :param str name_regex: A regular expression that will be used to match
162
- the object's name.
163
- :param str type: The managed object type the returned object must match.
161
+ :param _builtins.str name_regex: A regular expression that will be used to match the
162
+ object's name.
163
+ :param _builtins.str type: The managed object type the returned object must match.
164
164
  The managed object types can be found in the managed object type section
165
- [here](https://developer.vmware.com/apis/968/vsphere).
165
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
166
166
  """
167
- ...
167
+ __args__ = dict()
168
+ __args__['filters'] = filters
169
+ __args__['nameRegex'] = name_regex
170
+ __args__['type'] = type
171
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
172
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDynamic:getDynamic', __args__, opts=opts, typ=GetDynamicResult)
173
+ return __ret__.apply(lambda __response__: GetDynamicResult(
174
+ filters=pulumi.get(__response__, 'filters'),
175
+ id=pulumi.get(__response__, 'id'),
176
+ name_regex=pulumi.get(__response__, 'name_regex'),
177
+ type=pulumi.get(__response__, 'type')))