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.
- pulumi_vsphere/_inputs.py +6 -1135
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +2 -181
- pulumi_vsphere/compute_cluster_host_group.py +2 -67
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +2 -29
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +2 -41
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +2 -205
- pulumi_vsphere/compute_cluster_vm_group.py +2 -198
- pulumi_vsphere/compute_cluster_vm_host_rule.py +2 -73
- pulumi_vsphere/config/__init__.pyi +0 -5
- pulumi_vsphere/config/vars.py +0 -5
- pulumi_vsphere/content_library.py +2 -103
- pulumi_vsphere/content_library_item.py +2 -143
- pulumi_vsphere/custom_attribute.py +2 -77
- pulumi_vsphere/datacenter.py +4 -19
- pulumi_vsphere/datastore_cluster.py +2 -63
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +2 -159
- pulumi_vsphere/distributed_port_group.py +2 -285
- pulumi_vsphere/distributed_virtual_switch.py +2 -261
- pulumi_vsphere/dpm_host_override.py +2 -63
- pulumi_vsphere/drs_vm_override.py +2 -67
- pulumi_vsphere/entity_permissions.py +0 -5
- pulumi_vsphere/file.py +0 -5
- pulumi_vsphere/folder.py +2 -141
- pulumi_vsphere/get_compute_cluster.py +4 -15
- pulumi_vsphere/get_compute_cluster_host_group.py +6 -17
- pulumi_vsphere/get_content_library.py +4 -12
- pulumi_vsphere/get_content_library_item.py +4 -16
- pulumi_vsphere/get_custom_attribute.py +4 -13
- pulumi_vsphere/get_datacenter.py +7 -29
- pulumi_vsphere/get_datastore.py +4 -16
- pulumi_vsphere/get_datastore_cluster.py +5 -30
- pulumi_vsphere/get_datastore_stats.py +4 -16
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -15
- pulumi_vsphere/get_dynamic.py +4 -16
- pulumi_vsphere/get_folder.py +4 -12
- pulumi_vsphere/get_guest_os_customization.py +4 -17
- pulumi_vsphere/get_host.py +4 -15
- pulumi_vsphere/get_host_base_images.py +4 -11
- pulumi_vsphere/get_host_pci_device.py +4 -19
- pulumi_vsphere/get_host_thumbprint.py +14 -34
- pulumi_vsphere/get_host_vgpu_profile.py +4 -15
- pulumi_vsphere/get_license.py +4 -17
- pulumi_vsphere/get_network.py +5 -65
- pulumi_vsphere/get_ovf_vm_template.py +4 -55
- pulumi_vsphere/get_policy.py +4 -12
- pulumi_vsphere/get_resource_pool.py +4 -14
- pulumi_vsphere/get_role.py +4 -18
- pulumi_vsphere/get_tag.py +4 -15
- pulumi_vsphere/get_tag_category.py +4 -15
- pulumi_vsphere/get_vapp_container.py +4 -14
- pulumi_vsphere/get_virtual_machine.py +5 -145
- pulumi_vsphere/get_vmfs_disks.py +4 -17
- pulumi_vsphere/guest_os_customization.py +0 -5
- pulumi_vsphere/ha_vm_override.py +2 -163
- pulumi_vsphere/host.py +12 -203
- pulumi_vsphere/host_port_group.py +2 -17
- pulumi_vsphere/host_virtual_switch.py +2 -69
- pulumi_vsphere/license.py +0 -5
- pulumi_vsphere/nas_datastore.py +2 -67
- pulumi_vsphere/offline_software_depot.py +0 -5
- pulumi_vsphere/outputs.py +0 -45
- pulumi_vsphere/provider.py +0 -5
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +437 -168
- pulumi_vsphere/role.py +2 -33
- pulumi_vsphere/storage_drs_vm_override.py +2 -133
- pulumi_vsphere/supervisor.py +0 -5
- pulumi_vsphere/tag.py +2 -159
- pulumi_vsphere/tag_category.py +2 -83
- pulumi_vsphere/vapp_container.py +2 -163
- pulumi_vsphere/vapp_entity.py +2 -147
- pulumi_vsphere/virtual_disk.py +2 -81
- pulumi_vsphere/virtual_machine.py +2 -100
- pulumi_vsphere/virtual_machine_class.py +0 -5
- pulumi_vsphere/virtual_machine_snapshot.py +0 -5
- pulumi_vsphere/vm_storage_policy.py +0 -5
- pulumi_vsphere/vmfs_datastore.py +2 -271
- pulumi_vsphere/vnic.py +4 -19
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/METADATA +2 -3
- pulumi_vsphere-4.12.0a1725603256.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.12.0.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.12.0.dist-info → pulumi_vsphere-4.12.0a1725603256.dist-info}/top_level.txt +0 -0
pulumi_vsphere/get_network.py
CHANGED
|
@@ -4,17 +4,10 @@
|
|
|
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
|
-
from . import outputs
|
|
17
|
-
from ._inputs import *
|
|
18
11
|
|
|
19
12
|
__all__ = [
|
|
20
13
|
'GetNetworkResult',
|
|
@@ -28,16 +21,13 @@ class GetNetworkResult:
|
|
|
28
21
|
"""
|
|
29
22
|
A collection of values returned by getNetwork.
|
|
30
23
|
"""
|
|
31
|
-
def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None,
|
|
24
|
+
def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, id=None, name=None, type=None):
|
|
32
25
|
if datacenter_id and not isinstance(datacenter_id, str):
|
|
33
26
|
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
34
27
|
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
35
28
|
if distributed_virtual_switch_uuid and not isinstance(distributed_virtual_switch_uuid, str):
|
|
36
29
|
raise TypeError("Expected argument 'distributed_virtual_switch_uuid' to be a str")
|
|
37
30
|
pulumi.set(__self__, "distributed_virtual_switch_uuid", distributed_virtual_switch_uuid)
|
|
38
|
-
if filters and not isinstance(filters, list):
|
|
39
|
-
raise TypeError("Expected argument 'filters' to be a list")
|
|
40
|
-
pulumi.set(__self__, "filters", filters)
|
|
41
31
|
if id and not isinstance(id, str):
|
|
42
32
|
raise TypeError("Expected argument 'id' to be a str")
|
|
43
33
|
pulumi.set(__self__, "id", id)
|
|
@@ -58,11 +48,6 @@ class GetNetworkResult:
|
|
|
58
48
|
def distributed_virtual_switch_uuid(self) -> Optional[str]:
|
|
59
49
|
return pulumi.get(self, "distributed_virtual_switch_uuid")
|
|
60
50
|
|
|
61
|
-
@property
|
|
62
|
-
@pulumi.getter
|
|
63
|
-
def filters(self) -> Optional[Sequence['outputs.GetNetworkFilterResult']]:
|
|
64
|
-
return pulumi.get(self, "filters")
|
|
65
|
-
|
|
66
51
|
@property
|
|
67
52
|
@pulumi.getter
|
|
68
53
|
def id(self) -> str:
|
|
@@ -96,7 +81,6 @@ class AwaitableGetNetworkResult(GetNetworkResult):
|
|
|
96
81
|
return GetNetworkResult(
|
|
97
82
|
datacenter_id=self.datacenter_id,
|
|
98
83
|
distributed_virtual_switch_uuid=self.distributed_virtual_switch_uuid,
|
|
99
|
-
filters=self.filters,
|
|
100
84
|
id=self.id,
|
|
101
85
|
name=self.name,
|
|
102
86
|
type=self.type)
|
|
@@ -104,7 +88,6 @@ class AwaitableGetNetworkResult(GetNetworkResult):
|
|
|
104
88
|
|
|
105
89
|
def get_network(datacenter_id: Optional[str] = None,
|
|
106
90
|
distributed_virtual_switch_uuid: Optional[str] = None,
|
|
107
|
-
filters: Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]] = None,
|
|
108
91
|
name: Optional[str] = None,
|
|
109
92
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
|
|
110
93
|
"""
|
|
@@ -125,20 +108,6 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
125
108
|
datacenter_id=datacenter.id)
|
|
126
109
|
```
|
|
127
110
|
|
|
128
|
-
### Additional Examples
|
|
129
|
-
|
|
130
|
-
```python
|
|
131
|
-
import pulumi
|
|
132
|
-
import pulumi_vsphere as vsphere
|
|
133
|
-
|
|
134
|
-
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
135
|
-
my_port_group = vsphere.get_network(datacenter_id=datacenter.id,
|
|
136
|
-
name="VM Network",
|
|
137
|
-
filters=[{
|
|
138
|
-
"network_type": "Network",
|
|
139
|
-
}])
|
|
140
|
-
```
|
|
141
|
-
|
|
142
111
|
|
|
143
112
|
:param str datacenter_id: The managed object reference ID
|
|
144
113
|
of the datacenter the network is located in. This can be omitted if the
|
|
@@ -148,13 +117,11 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
148
117
|
network objects, the ID of the distributed virtual switch for which the port
|
|
149
118
|
group belongs. It is useful to differentiate port groups with same name using
|
|
150
119
|
the distributed virtual switch ID.
|
|
151
|
-
:param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
|
|
152
120
|
:param str name: The name of the network. This can be a name or path.
|
|
153
121
|
"""
|
|
154
122
|
__args__ = dict()
|
|
155
123
|
__args__['datacenterId'] = datacenter_id
|
|
156
124
|
__args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
|
|
157
|
-
__args__['filters'] = filters
|
|
158
125
|
__args__['name'] = name
|
|
159
126
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
160
127
|
__ret__ = pulumi.runtime.invoke('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult).value
|
|
@@ -162,13 +129,14 @@ def get_network(datacenter_id: Optional[str] = None,
|
|
|
162
129
|
return AwaitableGetNetworkResult(
|
|
163
130
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
164
131
|
distributed_virtual_switch_uuid=pulumi.get(__ret__, 'distributed_virtual_switch_uuid'),
|
|
165
|
-
filters=pulumi.get(__ret__, 'filters'),
|
|
166
132
|
id=pulumi.get(__ret__, 'id'),
|
|
167
133
|
name=pulumi.get(__ret__, 'name'),
|
|
168
134
|
type=pulumi.get(__ret__, 'type'))
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
@_utilities.lift_output_func(get_network)
|
|
169
138
|
def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
170
139
|
distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[str]]] = None,
|
|
171
|
-
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]]]] = None,
|
|
172
140
|
name: Optional[pulumi.Input[str]] = None,
|
|
173
141
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
|
|
174
142
|
"""
|
|
@@ -189,20 +157,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
189
157
|
datacenter_id=datacenter.id)
|
|
190
158
|
```
|
|
191
159
|
|
|
192
|
-
### Additional Examples
|
|
193
|
-
|
|
194
|
-
```python
|
|
195
|
-
import pulumi
|
|
196
|
-
import pulumi_vsphere as vsphere
|
|
197
|
-
|
|
198
|
-
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
199
|
-
my_port_group = vsphere.get_network(datacenter_id=datacenter.id,
|
|
200
|
-
name="VM Network",
|
|
201
|
-
filters=[{
|
|
202
|
-
"network_type": "Network",
|
|
203
|
-
}])
|
|
204
|
-
```
|
|
205
|
-
|
|
206
160
|
|
|
207
161
|
:param str datacenter_id: The managed object reference ID
|
|
208
162
|
of the datacenter the network is located in. This can be omitted if the
|
|
@@ -212,20 +166,6 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
212
166
|
network objects, the ID of the distributed virtual switch for which the port
|
|
213
167
|
group belongs. It is useful to differentiate port groups with same name using
|
|
214
168
|
the distributed virtual switch ID.
|
|
215
|
-
:param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
|
|
216
169
|
:param str name: The name of the network. This can be a name or path.
|
|
217
170
|
"""
|
|
218
|
-
|
|
219
|
-
__args__['datacenterId'] = datacenter_id
|
|
220
|
-
__args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
|
|
221
|
-
__args__['filters'] = filters
|
|
222
|
-
__args__['name'] = name
|
|
223
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
224
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
|
|
225
|
-
return __ret__.apply(lambda __response__: GetNetworkResult(
|
|
226
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
227
|
-
distributed_virtual_switch_uuid=pulumi.get(__response__, 'distributed_virtual_switch_uuid'),
|
|
228
|
-
filters=pulumi.get(__response__, 'filters'),
|
|
229
|
-
id=pulumi.get(__response__, 'id'),
|
|
230
|
-
name=pulumi.get(__response__, 'name'),
|
|
231
|
-
type=pulumi.get(__response__, 'type')))
|
|
171
|
+
...
|
|
@@ -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__ = [
|
|
@@ -473,6 +468,9 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[bool] = None,
|
|
|
473
468
|
scsi_controller_count=pulumi.get(__ret__, 'scsi_controller_count'),
|
|
474
469
|
scsi_type=pulumi.get(__ret__, 'scsi_type'),
|
|
475
470
|
swap_placement_policy=pulumi.get(__ret__, 'swap_placement_policy'))
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
@_utilities.lift_output_func(get_ovf_vm_template)
|
|
476
474
|
def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
477
475
|
datastore_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
478
476
|
deployment_option: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -525,53 +523,4 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[
|
|
|
525
523
|
:param str resource_pool_id: The ID of a resource pool in which to place
|
|
526
524
|
the virtual machine.
|
|
527
525
|
"""
|
|
528
|
-
|
|
529
|
-
__args__['allowUnverifiedSslCert'] = allow_unverified_ssl_cert
|
|
530
|
-
__args__['datastoreId'] = datastore_id
|
|
531
|
-
__args__['deploymentOption'] = deployment_option
|
|
532
|
-
__args__['diskProvisioning'] = disk_provisioning
|
|
533
|
-
__args__['enableHiddenProperties'] = enable_hidden_properties
|
|
534
|
-
__args__['folder'] = folder
|
|
535
|
-
__args__['hostSystemId'] = host_system_id
|
|
536
|
-
__args__['ipAllocationPolicy'] = ip_allocation_policy
|
|
537
|
-
__args__['ipProtocol'] = ip_protocol
|
|
538
|
-
__args__['localOvfPath'] = local_ovf_path
|
|
539
|
-
__args__['name'] = name
|
|
540
|
-
__args__['ovfNetworkMap'] = ovf_network_map
|
|
541
|
-
__args__['remoteOvfUrl'] = remote_ovf_url
|
|
542
|
-
__args__['resourcePoolId'] = resource_pool_id
|
|
543
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
544
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getOvfVmTemplate:getOvfVmTemplate', __args__, opts=opts, typ=GetOvfVmTemplateResult)
|
|
545
|
-
return __ret__.apply(lambda __response__: GetOvfVmTemplateResult(
|
|
546
|
-
allow_unverified_ssl_cert=pulumi.get(__response__, 'allow_unverified_ssl_cert'),
|
|
547
|
-
alternate_guest_name=pulumi.get(__response__, 'alternate_guest_name'),
|
|
548
|
-
annotation=pulumi.get(__response__, 'annotation'),
|
|
549
|
-
cpu_hot_add_enabled=pulumi.get(__response__, 'cpu_hot_add_enabled'),
|
|
550
|
-
cpu_hot_remove_enabled=pulumi.get(__response__, 'cpu_hot_remove_enabled'),
|
|
551
|
-
cpu_performance_counters_enabled=pulumi.get(__response__, 'cpu_performance_counters_enabled'),
|
|
552
|
-
datastore_id=pulumi.get(__response__, 'datastore_id'),
|
|
553
|
-
deployment_option=pulumi.get(__response__, 'deployment_option'),
|
|
554
|
-
disk_provisioning=pulumi.get(__response__, 'disk_provisioning'),
|
|
555
|
-
enable_hidden_properties=pulumi.get(__response__, 'enable_hidden_properties'),
|
|
556
|
-
firmware=pulumi.get(__response__, 'firmware'),
|
|
557
|
-
folder=pulumi.get(__response__, 'folder'),
|
|
558
|
-
guest_id=pulumi.get(__response__, 'guest_id'),
|
|
559
|
-
host_system_id=pulumi.get(__response__, 'host_system_id'),
|
|
560
|
-
id=pulumi.get(__response__, 'id'),
|
|
561
|
-
ide_controller_count=pulumi.get(__response__, 'ide_controller_count'),
|
|
562
|
-
ip_allocation_policy=pulumi.get(__response__, 'ip_allocation_policy'),
|
|
563
|
-
ip_protocol=pulumi.get(__response__, 'ip_protocol'),
|
|
564
|
-
local_ovf_path=pulumi.get(__response__, 'local_ovf_path'),
|
|
565
|
-
memory=pulumi.get(__response__, 'memory'),
|
|
566
|
-
memory_hot_add_enabled=pulumi.get(__response__, 'memory_hot_add_enabled'),
|
|
567
|
-
name=pulumi.get(__response__, 'name'),
|
|
568
|
-
nested_hv_enabled=pulumi.get(__response__, 'nested_hv_enabled'),
|
|
569
|
-
num_cores_per_socket=pulumi.get(__response__, 'num_cores_per_socket'),
|
|
570
|
-
num_cpus=pulumi.get(__response__, 'num_cpus'),
|
|
571
|
-
ovf_network_map=pulumi.get(__response__, 'ovf_network_map'),
|
|
572
|
-
remote_ovf_url=pulumi.get(__response__, 'remote_ovf_url'),
|
|
573
|
-
resource_pool_id=pulumi.get(__response__, 'resource_pool_id'),
|
|
574
|
-
sata_controller_count=pulumi.get(__response__, 'sata_controller_count'),
|
|
575
|
-
scsi_controller_count=pulumi.get(__response__, 'scsi_controller_count'),
|
|
576
|
-
scsi_type=pulumi.get(__response__, 'scsi_type'),
|
|
577
|
-
swap_placement_policy=pulumi.get(__response__, 'swap_placement_policy')))
|
|
526
|
+
...
|
pulumi_vsphere/get_policy.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__ = [
|
|
@@ -89,6 +84,9 @@ def get_policy(name: Optional[str] = None,
|
|
|
89
84
|
return AwaitableGetPolicyResult(
|
|
90
85
|
id=pulumi.get(__ret__, 'id'),
|
|
91
86
|
name=pulumi.get(__ret__, 'name'))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
@_utilities.lift_output_func(get_policy)
|
|
92
90
|
def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
93
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPolicyResult]:
|
|
94
92
|
"""
|
|
@@ -112,10 +110,4 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
112
110
|
|
|
113
111
|
:param str name: The name of the storage policy.
|
|
114
112
|
"""
|
|
115
|
-
|
|
116
|
-
__args__['name'] = name
|
|
117
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
118
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getPolicy:getPolicy', __args__, opts=opts, typ=GetPolicyResult)
|
|
119
|
-
return __ret__.apply(lambda __response__: GetPolicyResult(
|
|
120
|
-
id=pulumi.get(__response__, 'id'),
|
|
121
|
-
name=pulumi.get(__response__, 'name')))
|
|
113
|
+
...
|
|
@@ -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_resource_pool(datacenter_id: Optional[str] = None,
|
|
|
134
129
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
135
130
|
id=pulumi.get(__ret__, 'id'),
|
|
136
131
|
name=pulumi.get(__ret__, 'name'))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
@_utilities.lift_output_func(get_resource_pool)
|
|
137
135
|
def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
138
136
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
139
137
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourcePoolResult]:
|
|
@@ -191,12 +189,4 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]]
|
|
|
191
189
|
:param str name: The name of the resource pool. This can be a name or
|
|
192
190
|
path. This is required when using vCenter.
|
|
193
191
|
"""
|
|
194
|
-
|
|
195
|
-
__args__['datacenterId'] = datacenter_id
|
|
196
|
-
__args__['name'] = name
|
|
197
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
198
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult)
|
|
199
|
-
return __ret__.apply(lambda __response__: GetResourcePoolResult(
|
|
200
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
201
|
-
id=pulumi.get(__response__, 'id'),
|
|
202
|
-
name=pulumi.get(__response__, 'name')))
|
|
192
|
+
...
|
pulumi_vsphere/get_role.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__ = [
|
|
@@ -131,6 +126,9 @@ def get_role(description: Optional[str] = None,
|
|
|
131
126
|
label=pulumi.get(__ret__, 'label'),
|
|
132
127
|
name=pulumi.get(__ret__, 'name'),
|
|
133
128
|
role_privileges=pulumi.get(__ret__, 'role_privileges'))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
@_utilities.lift_output_func(get_role)
|
|
134
132
|
def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
135
133
|
label: Optional[pulumi.Input[str]] = None,
|
|
136
134
|
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -154,16 +152,4 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
154
152
|
:param str label: The label of the role.
|
|
155
153
|
:param Sequence[str] role_privileges: The privileges associated with the role.
|
|
156
154
|
"""
|
|
157
|
-
|
|
158
|
-
__args__['description'] = description
|
|
159
|
-
__args__['label'] = label
|
|
160
|
-
__args__['name'] = name
|
|
161
|
-
__args__['rolePrivileges'] = role_privileges
|
|
162
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
163
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getRole:getRole', __args__, opts=opts, typ=GetRoleResult)
|
|
164
|
-
return __ret__.apply(lambda __response__: GetRoleResult(
|
|
165
|
-
description=pulumi.get(__response__, 'description'),
|
|
166
|
-
id=pulumi.get(__response__, 'id'),
|
|
167
|
-
label=pulumi.get(__response__, 'label'),
|
|
168
|
-
name=pulumi.get(__response__, 'name'),
|
|
169
|
-
role_privileges=pulumi.get(__response__, 'role_privileges')))
|
|
155
|
+
...
|
pulumi_vsphere/get_tag.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__ = [
|
|
@@ -116,6 +111,9 @@ def get_tag(category_id: Optional[str] = None,
|
|
|
116
111
|
description=pulumi.get(__ret__, 'description'),
|
|
117
112
|
id=pulumi.get(__ret__, 'id'),
|
|
118
113
|
name=pulumi.get(__ret__, 'name'))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@_utilities.lift_output_func(get_tag)
|
|
119
117
|
def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
120
118
|
name: Optional[pulumi.Input[str]] = None,
|
|
121
119
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagResult]:
|
|
@@ -145,13 +143,4 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None,
|
|
|
145
143
|
located.
|
|
146
144
|
:param str name: The name of the tag.
|
|
147
145
|
"""
|
|
148
|
-
|
|
149
|
-
__args__['categoryId'] = category_id
|
|
150
|
-
__args__['name'] = name
|
|
151
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
152
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getTag:getTag', __args__, opts=opts, typ=GetTagResult)
|
|
153
|
-
return __ret__.apply(lambda __response__: GetTagResult(
|
|
154
|
-
category_id=pulumi.get(__response__, 'category_id'),
|
|
155
|
-
description=pulumi.get(__response__, 'description'),
|
|
156
|
-
id=pulumi.get(__response__, 'id'),
|
|
157
|
-
name=pulumi.get(__response__, 'name')))
|
|
146
|
+
...
|
|
@@ -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__ = [
|
|
@@ -120,6 +115,9 @@ def get_tag_category(name: Optional[str] = None,
|
|
|
120
115
|
description=pulumi.get(__ret__, 'description'),
|
|
121
116
|
id=pulumi.get(__ret__, 'id'),
|
|
122
117
|
name=pulumi.get(__ret__, 'name'))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@_utilities.lift_output_func(get_tag_category)
|
|
123
121
|
def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
124
122
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagCategoryResult]:
|
|
125
123
|
"""
|
|
@@ -144,13 +142,4 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
144
142
|
|
|
145
143
|
:param str name: The name of the tag category.
|
|
146
144
|
"""
|
|
147
|
-
|
|
148
|
-
__args__['name'] = name
|
|
149
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
150
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getTagCategory:getTagCategory', __args__, opts=opts, typ=GetTagCategoryResult)
|
|
151
|
-
return __ret__.apply(lambda __response__: GetTagCategoryResult(
|
|
152
|
-
associable_types=pulumi.get(__response__, 'associable_types'),
|
|
153
|
-
cardinality=pulumi.get(__response__, 'cardinality'),
|
|
154
|
-
description=pulumi.get(__response__, 'description'),
|
|
155
|
-
id=pulumi.get(__response__, 'id'),
|
|
156
|
-
name=pulumi.get(__response__, 'name')))
|
|
145
|
+
...
|
|
@@ -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__ = [
|
|
@@ -103,6 +98,9 @@ def get_vapp_container(datacenter_id: Optional[str] = None,
|
|
|
103
98
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
104
99
|
id=pulumi.get(__ret__, 'id'),
|
|
105
100
|
name=pulumi.get(__ret__, 'name'))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@_utilities.lift_output_func(get_vapp_container)
|
|
106
104
|
def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
107
105
|
name: Optional[pulumi.Input[str]] = None,
|
|
108
106
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVappContainerResult]:
|
|
@@ -129,12 +127,4 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None,
|
|
|
129
127
|
:param str name: The name of the vApp container. This can be a name or
|
|
130
128
|
path.
|
|
131
129
|
"""
|
|
132
|
-
|
|
133
|
-
__args__['datacenterId'] = datacenter_id
|
|
134
|
-
__args__['name'] = name
|
|
135
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
136
|
-
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getVappContainer:getVappContainer', __args__, opts=opts, typ=GetVappContainerResult)
|
|
137
|
-
return __ret__.apply(lambda __response__: GetVappContainerResult(
|
|
138
|
-
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
139
|
-
id=pulumi.get(__response__, 'id'),
|
|
140
|
-
name=pulumi.get(__response__, 'name')))
|
|
130
|
+
...
|