pulumi-vsphere 4.14.0a1747752163__py3-none-any.whl → 4.15.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.
- pulumi_vsphere/__init__.py +1 -1
- pulumi_vsphere/_inputs.py +1 -1
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +1 -1
- pulumi_vsphere/compute_cluster_host_group.py +1 -1
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +1 -1
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +1 -1
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +1 -1
- pulumi_vsphere/compute_cluster_vm_group.py +1 -1
- pulumi_vsphere/compute_cluster_vm_host_rule.py +1 -1
- pulumi_vsphere/config/__init__.py +1 -1
- pulumi_vsphere/config/__init__.pyi +1 -1
- pulumi_vsphere/config/vars.py +1 -1
- pulumi_vsphere/content_library.py +1 -1
- pulumi_vsphere/content_library_item.py +1 -1
- pulumi_vsphere/custom_attribute.py +1 -1
- pulumi_vsphere/datacenter.py +1 -1
- pulumi_vsphere/datastore_cluster.py +1 -1
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +1 -1
- pulumi_vsphere/distributed_port_group.py +1 -1
- pulumi_vsphere/distributed_virtual_switch.py +1 -1
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +1 -1
- pulumi_vsphere/dpm_host_override.py +1 -1
- pulumi_vsphere/drs_vm_override.py +1 -1
- pulumi_vsphere/entity_permissions.py +1 -1
- pulumi_vsphere/file.py +1 -1
- pulumi_vsphere/folder.py +1 -1
- pulumi_vsphere/get_compute_cluster.py +1 -1
- pulumi_vsphere/get_compute_cluster_host_group.py +1 -1
- pulumi_vsphere/get_content_library.py +1 -1
- pulumi_vsphere/get_content_library_item.py +1 -1
- pulumi_vsphere/get_custom_attribute.py +1 -1
- pulumi_vsphere/get_datacenter.py +1 -1
- pulumi_vsphere/get_datastore.py +1 -1
- pulumi_vsphere/get_datastore_cluster.py +1 -1
- pulumi_vsphere/get_datastore_stats.py +1 -1
- pulumi_vsphere/get_distributed_virtual_switch.py +1 -1
- pulumi_vsphere/get_dynamic.py +1 -1
- pulumi_vsphere/get_folder.py +1 -1
- pulumi_vsphere/get_guest_os_customization.py +1 -1
- pulumi_vsphere/get_host.py +1 -1
- pulumi_vsphere/get_host_base_images.py +1 -1
- pulumi_vsphere/get_host_pci_device.py +1 -1
- pulumi_vsphere/get_host_thumbprint.py +1 -1
- pulumi_vsphere/get_host_vgpu_profile.py +1 -1
- pulumi_vsphere/get_license.py +1 -1
- pulumi_vsphere/get_network.py +22 -5
- pulumi_vsphere/get_ovf_vm_template.py +1 -1
- pulumi_vsphere/get_policy.py +1 -1
- pulumi_vsphere/get_resource_pool.py +64 -13
- pulumi_vsphere/get_role.py +1 -1
- pulumi_vsphere/get_tag.py +1 -1
- pulumi_vsphere/get_tag_category.py +1 -1
- pulumi_vsphere/get_vapp_container.py +1 -1
- pulumi_vsphere/get_virtual_machine.py +1 -1
- pulumi_vsphere/get_vmfs_disks.py +1 -1
- pulumi_vsphere/guest_os_customization.py +1 -1
- pulumi_vsphere/ha_vm_override.py +1 -1
- pulumi_vsphere/host.py +1 -1
- pulumi_vsphere/host_port_group.py +1 -1
- pulumi_vsphere/host_virtual_switch.py +1 -1
- pulumi_vsphere/license.py +1 -1
- pulumi_vsphere/nas_datastore.py +1 -1
- pulumi_vsphere/offline_software_depot.py +1 -1
- pulumi_vsphere/outputs.py +1 -1
- pulumi_vsphere/provider.py +36 -38
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +1 -1
- pulumi_vsphere/role.py +1 -1
- pulumi_vsphere/storage_drs_vm_override.py +1 -1
- pulumi_vsphere/supervisor.py +1 -1
- pulumi_vsphere/tag.py +1 -1
- pulumi_vsphere/tag_category.py +1 -1
- pulumi_vsphere/vapp_container.py +1 -1
- pulumi_vsphere/vapp_entity.py +1 -1
- pulumi_vsphere/virtual_disk.py +1 -1
- pulumi_vsphere/virtual_machine.py +1 -1
- pulumi_vsphere/virtual_machine_class.py +1 -1
- pulumi_vsphere/virtual_machine_snapshot.py +1 -1
- pulumi_vsphere/vm_storage_policy.py +1 -1
- pulumi_vsphere/vmfs_datastore.py +1 -1
- pulumi_vsphere/vnic.py +1 -1
- {pulumi_vsphere-4.14.0a1747752163.dist-info → pulumi_vsphere-4.15.0.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.15.0.dist-info/RECORD +87 -0
- {pulumi_vsphere-4.14.0a1747752163.dist-info → pulumi_vsphere-4.15.0.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1747752163.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1747752163.dist-info → pulumi_vsphere-4.15.0.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -27,7 +27,7 @@ class GetResourcePoolResult:
|
|
|
27
27
|
"""
|
|
28
28
|
A collection of values returned by getResourcePool.
|
|
29
29
|
"""
|
|
30
|
-
def __init__(__self__, datacenter_id=None, id=None, name=None):
|
|
30
|
+
def __init__(__self__, datacenter_id=None, id=None, name=None, parent_resource_pool_id=None):
|
|
31
31
|
if datacenter_id and not isinstance(datacenter_id, str):
|
|
32
32
|
raise TypeError("Expected argument 'datacenter_id' to be a str")
|
|
33
33
|
pulumi.set(__self__, "datacenter_id", datacenter_id)
|
|
@@ -37,6 +37,9 @@ class GetResourcePoolResult:
|
|
|
37
37
|
if name and not isinstance(name, str):
|
|
38
38
|
raise TypeError("Expected argument 'name' to be a str")
|
|
39
39
|
pulumi.set(__self__, "name", name)
|
|
40
|
+
if parent_resource_pool_id and not isinstance(parent_resource_pool_id, str):
|
|
41
|
+
raise TypeError("Expected argument 'parent_resource_pool_id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "parent_resource_pool_id", parent_resource_pool_id)
|
|
40
43
|
|
|
41
44
|
@property
|
|
42
45
|
@pulumi.getter(name="datacenterId")
|
|
@@ -56,6 +59,11 @@ class GetResourcePoolResult:
|
|
|
56
59
|
def name(self) -> Optional[builtins.str]:
|
|
57
60
|
return pulumi.get(self, "name")
|
|
58
61
|
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="parentResourcePoolId")
|
|
64
|
+
def parent_resource_pool_id(self) -> Optional[builtins.str]:
|
|
65
|
+
return pulumi.get(self, "parent_resource_pool_id")
|
|
66
|
+
|
|
59
67
|
|
|
60
68
|
class AwaitableGetResourcePoolResult(GetResourcePoolResult):
|
|
61
69
|
# pylint: disable=using-constant-test
|
|
@@ -65,11 +73,13 @@ class AwaitableGetResourcePoolResult(GetResourcePoolResult):
|
|
|
65
73
|
return GetResourcePoolResult(
|
|
66
74
|
datacenter_id=self.datacenter_id,
|
|
67
75
|
id=self.id,
|
|
68
|
-
name=self.name
|
|
76
|
+
name=self.name,
|
|
77
|
+
parent_resource_pool_id=self.parent_resource_pool_id)
|
|
69
78
|
|
|
70
79
|
|
|
71
80
|
def get_resource_pool(datacenter_id: Optional[builtins.str] = None,
|
|
72
81
|
name: Optional[builtins.str] = None,
|
|
82
|
+
parent_resource_pool_id: Optional[builtins.str] = None,
|
|
73
83
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourcePoolResult:
|
|
74
84
|
"""
|
|
75
85
|
The `ResourcePool` data source can be used to discover the ID of a
|
|
@@ -79,15 +89,30 @@ def get_resource_pool(datacenter_id: Optional[builtins.str] = None,
|
|
|
79
89
|
|
|
80
90
|
## Example Usage
|
|
81
91
|
|
|
92
|
+
### Find a Resource Pool by Path
|
|
93
|
+
|
|
82
94
|
```python
|
|
83
95
|
import pulumi
|
|
84
96
|
import pulumi_vsphere as vsphere
|
|
85
97
|
|
|
86
98
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
87
|
-
pool = vsphere.get_resource_pool(name="
|
|
99
|
+
pool = vsphere.get_resource_pool(name="cluster-01/Resources",
|
|
88
100
|
datacenter_id=datacenter.id)
|
|
89
101
|
```
|
|
90
102
|
|
|
103
|
+
### Find a Child Resource Pool Using the Parent ID
|
|
104
|
+
|
|
105
|
+
```python
|
|
106
|
+
import pulumi
|
|
107
|
+
import pulumi_vsphere as vsphere
|
|
108
|
+
|
|
109
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
110
|
+
parent_pool = vsphere.get_resource_pool(name="cluster-01/Resources",
|
|
111
|
+
datacenter_id=datacenter.id)
|
|
112
|
+
child_pool = vsphere.get_resource_pool(name="example",
|
|
113
|
+
parent_resource_pool_id=parent_pool.id)
|
|
114
|
+
```
|
|
115
|
+
|
|
91
116
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
92
117
|
|
|
93
118
|
> **NOTE:** Returning the root resource pool for a cluster can be done
|
|
@@ -117,26 +142,32 @@ def get_resource_pool(datacenter_id: Optional[builtins.str] = None,
|
|
|
117
142
|
of the datacenter in which the resource pool is located. This can be omitted
|
|
118
143
|
if the search path used in `name` is an absolute path. For default
|
|
119
144
|
datacenters, use the id attribute from an empty `Datacenter` data
|
|
120
|
-
source
|
|
145
|
+
source..
|
|
146
|
+
:param builtins.str name: The name of the resource pool. This can be a name or
|
|
147
|
+
path. This is required when using vCenter.
|
|
148
|
+
:param builtins.str parent_resource_pool_id: The managed object ID
|
|
149
|
+
of the parent resource pool. When specified, the `name` parameter is used to find
|
|
150
|
+
a child resource pool with the given name under this parent resource pool.
|
|
121
151
|
|
|
122
152
|
> **Note:** When using ESXi without a vCenter Server instance, you do not
|
|
123
153
|
need to specify either attribute to use this data source. An empty declaration
|
|
124
154
|
will load the ESXi host's root resource pool.
|
|
125
|
-
:param builtins.str name: The name of the resource pool. This can be a name or
|
|
126
|
-
path. This is required when using vCenter.
|
|
127
155
|
"""
|
|
128
156
|
__args__ = dict()
|
|
129
157
|
__args__['datacenterId'] = datacenter_id
|
|
130
158
|
__args__['name'] = name
|
|
159
|
+
__args__['parentResourcePoolId'] = parent_resource_pool_id
|
|
131
160
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
132
161
|
__ret__ = pulumi.runtime.invoke('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult).value
|
|
133
162
|
|
|
134
163
|
return AwaitableGetResourcePoolResult(
|
|
135
164
|
datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
|
|
136
165
|
id=pulumi.get(__ret__, 'id'),
|
|
137
|
-
name=pulumi.get(__ret__, 'name')
|
|
166
|
+
name=pulumi.get(__ret__, 'name'),
|
|
167
|
+
parent_resource_pool_id=pulumi.get(__ret__, 'parent_resource_pool_id'))
|
|
138
168
|
def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
139
169
|
name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
170
|
+
parent_resource_pool_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
140
171
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetResourcePoolResult]:
|
|
141
172
|
"""
|
|
142
173
|
The `ResourcePool` data source can be used to discover the ID of a
|
|
@@ -146,15 +177,30 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[built
|
|
|
146
177
|
|
|
147
178
|
## Example Usage
|
|
148
179
|
|
|
180
|
+
### Find a Resource Pool by Path
|
|
181
|
+
|
|
149
182
|
```python
|
|
150
183
|
import pulumi
|
|
151
184
|
import pulumi_vsphere as vsphere
|
|
152
185
|
|
|
153
186
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
154
|
-
pool = vsphere.get_resource_pool(name="
|
|
187
|
+
pool = vsphere.get_resource_pool(name="cluster-01/Resources",
|
|
155
188
|
datacenter_id=datacenter.id)
|
|
156
189
|
```
|
|
157
190
|
|
|
191
|
+
### Find a Child Resource Pool Using the Parent ID
|
|
192
|
+
|
|
193
|
+
```python
|
|
194
|
+
import pulumi
|
|
195
|
+
import pulumi_vsphere as vsphere
|
|
196
|
+
|
|
197
|
+
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
198
|
+
parent_pool = vsphere.get_resource_pool(name="cluster-01/Resources",
|
|
199
|
+
datacenter_id=datacenter.id)
|
|
200
|
+
child_pool = vsphere.get_resource_pool(name="example",
|
|
201
|
+
parent_resource_pool_id=parent_pool.id)
|
|
202
|
+
```
|
|
203
|
+
|
|
158
204
|
### Specifying the Root Resource Pool for a Standalone ESXi Host
|
|
159
205
|
|
|
160
206
|
> **NOTE:** Returning the root resource pool for a cluster can be done
|
|
@@ -184,20 +230,25 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[built
|
|
|
184
230
|
of the datacenter in which the resource pool is located. This can be omitted
|
|
185
231
|
if the search path used in `name` is an absolute path. For default
|
|
186
232
|
datacenters, use the id attribute from an empty `Datacenter` data
|
|
187
|
-
source
|
|
233
|
+
source..
|
|
234
|
+
:param builtins.str name: The name of the resource pool. This can be a name or
|
|
235
|
+
path. This is required when using vCenter.
|
|
236
|
+
:param builtins.str parent_resource_pool_id: The managed object ID
|
|
237
|
+
of the parent resource pool. When specified, the `name` parameter is used to find
|
|
238
|
+
a child resource pool with the given name under this parent resource pool.
|
|
188
239
|
|
|
189
240
|
> **Note:** When using ESXi without a vCenter Server instance, you do not
|
|
190
241
|
need to specify either attribute to use this data source. An empty declaration
|
|
191
242
|
will load the ESXi host's root resource pool.
|
|
192
|
-
:param builtins.str name: The name of the resource pool. This can be a name or
|
|
193
|
-
path. This is required when using vCenter.
|
|
194
243
|
"""
|
|
195
244
|
__args__ = dict()
|
|
196
245
|
__args__['datacenterId'] = datacenter_id
|
|
197
246
|
__args__['name'] = name
|
|
247
|
+
__args__['parentResourcePoolId'] = parent_resource_pool_id
|
|
198
248
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
199
249
|
__ret__ = pulumi.runtime.invoke_output('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult)
|
|
200
250
|
return __ret__.apply(lambda __response__: GetResourcePoolResult(
|
|
201
251
|
datacenter_id=pulumi.get(__response__, 'datacenter_id'),
|
|
202
252
|
id=pulumi.get(__response__, 'id'),
|
|
203
|
-
name=pulumi.get(__response__, 'name')
|
|
253
|
+
name=pulumi.get(__response__, 'name'),
|
|
254
|
+
parent_resource_pool_id=pulumi.get(__response__, 'parent_resource_pool_id')))
|
pulumi_vsphere/get_role.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/get_tag.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/get_vmfs_disks.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/ha_vm_override.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/host.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/license.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/nas_datastore.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/outputs.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/provider.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -20,36 +20,34 @@ __all__ = ['ProviderArgs', 'Provider']
|
|
|
20
20
|
@pulumi.input_type
|
|
21
21
|
class ProviderArgs:
|
|
22
22
|
def __init__(__self__, *,
|
|
23
|
-
password: pulumi.Input[builtins.str],
|
|
24
|
-
user: pulumi.Input[builtins.str],
|
|
25
23
|
allow_unverified_ssl: Optional[pulumi.Input[builtins.bool]] = None,
|
|
26
24
|
api_timeout: Optional[pulumi.Input[builtins.int]] = None,
|
|
27
25
|
client_debug: Optional[pulumi.Input[builtins.bool]] = None,
|
|
28
26
|
client_debug_path: Optional[pulumi.Input[builtins.str]] = None,
|
|
29
27
|
client_debug_path_run: Optional[pulumi.Input[builtins.str]] = None,
|
|
28
|
+
password: Optional[pulumi.Input[builtins.str]] = None,
|
|
30
29
|
persist_session: Optional[pulumi.Input[builtins.bool]] = None,
|
|
31
30
|
rest_session_path: Optional[pulumi.Input[builtins.str]] = None,
|
|
31
|
+
user: Optional[pulumi.Input[builtins.str]] = None,
|
|
32
32
|
vcenter_server: Optional[pulumi.Input[builtins.str]] = None,
|
|
33
33
|
vim_keep_alive: Optional[pulumi.Input[builtins.int]] = None,
|
|
34
34
|
vim_session_path: Optional[pulumi.Input[builtins.str]] = None,
|
|
35
35
|
vsphere_server: Optional[pulumi.Input[builtins.str]] = None):
|
|
36
36
|
"""
|
|
37
37
|
The set of arguments for constructing a Provider resource.
|
|
38
|
-
:param pulumi.Input[builtins.str] password: The user password for vSphere API operations.
|
|
39
|
-
:param pulumi.Input[builtins.str] user: The user name for vSphere API operations.
|
|
40
38
|
:param pulumi.Input[builtins.bool] allow_unverified_ssl: If set, VMware vSphere client will permit unverifiable SSL certificates.
|
|
41
39
|
:param pulumi.Input[builtins.int] api_timeout: API timeout in minutes (Default: 5)
|
|
42
40
|
:param pulumi.Input[builtins.bool] client_debug: govmomi debug
|
|
43
41
|
:param pulumi.Input[builtins.str] client_debug_path: govmomi debug path for debug
|
|
44
42
|
:param pulumi.Input[builtins.str] client_debug_path_run: govmomi debug path for a single run
|
|
43
|
+
:param pulumi.Input[builtins.str] password: The user password for vSphere API operations.
|
|
45
44
|
:param pulumi.Input[builtins.bool] persist_session: Persist vSphere client sessions to disk
|
|
46
45
|
:param pulumi.Input[builtins.str] rest_session_path: The directory to save vSphere REST API sessions to
|
|
46
|
+
:param pulumi.Input[builtins.str] user: The user name for vSphere API operations.
|
|
47
47
|
:param pulumi.Input[builtins.int] vim_keep_alive: Keep alive interval for the VIM session in minutes
|
|
48
48
|
:param pulumi.Input[builtins.str] vim_session_path: The directory to save vSphere SOAP API sessions to
|
|
49
49
|
:param pulumi.Input[builtins.str] vsphere_server: The vSphere Server name for vSphere API operations.
|
|
50
50
|
"""
|
|
51
|
-
pulumi.set(__self__, "password", password)
|
|
52
|
-
pulumi.set(__self__, "user", user)
|
|
53
51
|
if allow_unverified_ssl is None:
|
|
54
52
|
allow_unverified_ssl = _utilities.get_env_bool('VSPHERE_ALLOW_UNVERIFIED_SSL')
|
|
55
53
|
if allow_unverified_ssl is not None:
|
|
@@ -68,6 +66,8 @@ class ProviderArgs:
|
|
|
68
66
|
client_debug_path_run = _utilities.get_env('VSPHERE_CLIENT_DEBUG_PATH_RUN')
|
|
69
67
|
if client_debug_path_run is not None:
|
|
70
68
|
pulumi.set(__self__, "client_debug_path_run", client_debug_path_run)
|
|
69
|
+
if password is not None:
|
|
70
|
+
pulumi.set(__self__, "password", password)
|
|
71
71
|
if persist_session is None:
|
|
72
72
|
persist_session = _utilities.get_env_bool('VSPHERE_PERSIST_SESSION')
|
|
73
73
|
if persist_session is not None:
|
|
@@ -76,6 +76,8 @@ class ProviderArgs:
|
|
|
76
76
|
rest_session_path = _utilities.get_env('VSPHERE_REST_SESSION_PATH')
|
|
77
77
|
if rest_session_path is not None:
|
|
78
78
|
pulumi.set(__self__, "rest_session_path", rest_session_path)
|
|
79
|
+
if user is not None:
|
|
80
|
+
pulumi.set(__self__, "user", user)
|
|
79
81
|
if vcenter_server is not None:
|
|
80
82
|
warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
|
|
81
83
|
pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
|
|
@@ -92,30 +94,6 @@ class ProviderArgs:
|
|
|
92
94
|
if vsphere_server is not None:
|
|
93
95
|
pulumi.set(__self__, "vsphere_server", vsphere_server)
|
|
94
96
|
|
|
95
|
-
@property
|
|
96
|
-
@pulumi.getter
|
|
97
|
-
def password(self) -> pulumi.Input[builtins.str]:
|
|
98
|
-
"""
|
|
99
|
-
The user password for vSphere API operations.
|
|
100
|
-
"""
|
|
101
|
-
return pulumi.get(self, "password")
|
|
102
|
-
|
|
103
|
-
@password.setter
|
|
104
|
-
def password(self, value: pulumi.Input[builtins.str]):
|
|
105
|
-
pulumi.set(self, "password", value)
|
|
106
|
-
|
|
107
|
-
@property
|
|
108
|
-
@pulumi.getter
|
|
109
|
-
def user(self) -> pulumi.Input[builtins.str]:
|
|
110
|
-
"""
|
|
111
|
-
The user name for vSphere API operations.
|
|
112
|
-
"""
|
|
113
|
-
return pulumi.get(self, "user")
|
|
114
|
-
|
|
115
|
-
@user.setter
|
|
116
|
-
def user(self, value: pulumi.Input[builtins.str]):
|
|
117
|
-
pulumi.set(self, "user", value)
|
|
118
|
-
|
|
119
97
|
@property
|
|
120
98
|
@pulumi.getter(name="allowUnverifiedSsl")
|
|
121
99
|
def allow_unverified_ssl(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
@@ -176,6 +154,18 @@ class ProviderArgs:
|
|
|
176
154
|
def client_debug_path_run(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
177
155
|
pulumi.set(self, "client_debug_path_run", value)
|
|
178
156
|
|
|
157
|
+
@property
|
|
158
|
+
@pulumi.getter
|
|
159
|
+
def password(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
160
|
+
"""
|
|
161
|
+
The user password for vSphere API operations.
|
|
162
|
+
"""
|
|
163
|
+
return pulumi.get(self, "password")
|
|
164
|
+
|
|
165
|
+
@password.setter
|
|
166
|
+
def password(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
167
|
+
pulumi.set(self, "password", value)
|
|
168
|
+
|
|
179
169
|
@property
|
|
180
170
|
@pulumi.getter(name="persistSession")
|
|
181
171
|
def persist_session(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
@@ -200,6 +190,18 @@ class ProviderArgs:
|
|
|
200
190
|
def rest_session_path(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
201
191
|
pulumi.set(self, "rest_session_path", value)
|
|
202
192
|
|
|
193
|
+
@property
|
|
194
|
+
@pulumi.getter
|
|
195
|
+
def user(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
196
|
+
"""
|
|
197
|
+
The user name for vSphere API operations.
|
|
198
|
+
"""
|
|
199
|
+
return pulumi.get(self, "user")
|
|
200
|
+
|
|
201
|
+
@user.setter
|
|
202
|
+
def user(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
203
|
+
pulumi.set(self, "user", value)
|
|
204
|
+
|
|
203
205
|
@property
|
|
204
206
|
@pulumi.getter(name="vcenterServer")
|
|
205
207
|
@_utilities.deprecated("""This field has been renamed to vsphere_server.""")
|
|
@@ -292,7 +294,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
292
294
|
@overload
|
|
293
295
|
def __init__(__self__,
|
|
294
296
|
resource_name: str,
|
|
295
|
-
args: ProviderArgs,
|
|
297
|
+
args: Optional[ProviderArgs] = None,
|
|
296
298
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
297
299
|
"""
|
|
298
300
|
The provider type for the vsphere package. By default, resources use package-wide configuration
|
|
@@ -350,8 +352,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
350
352
|
if client_debug_path_run is None:
|
|
351
353
|
client_debug_path_run = _utilities.get_env('VSPHERE_CLIENT_DEBUG_PATH_RUN')
|
|
352
354
|
__props__.__dict__["client_debug_path_run"] = client_debug_path_run
|
|
353
|
-
if password is None and not opts.urn:
|
|
354
|
-
raise TypeError("Missing required property 'password'")
|
|
355
355
|
__props__.__dict__["password"] = password
|
|
356
356
|
if persist_session is None:
|
|
357
357
|
persist_session = _utilities.get_env_bool('VSPHERE_PERSIST_SESSION')
|
|
@@ -359,8 +359,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
359
359
|
if rest_session_path is None:
|
|
360
360
|
rest_session_path = _utilities.get_env('VSPHERE_REST_SESSION_PATH')
|
|
361
361
|
__props__.__dict__["rest_session_path"] = rest_session_path
|
|
362
|
-
if user is None and not opts.urn:
|
|
363
|
-
raise TypeError("Missing required property 'user'")
|
|
364
362
|
__props__.__dict__["user"] = user
|
|
365
363
|
__props__.__dict__["vcenter_server"] = vcenter_server
|
|
366
364
|
if vim_keep_alive is None:
|
|
@@ -394,7 +392,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
394
392
|
|
|
395
393
|
@property
|
|
396
394
|
@pulumi.getter
|
|
397
|
-
def password(self) -> pulumi.Output[builtins.str]:
|
|
395
|
+
def password(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
398
396
|
"""
|
|
399
397
|
The user password for vSphere API operations.
|
|
400
398
|
"""
|
|
@@ -410,7 +408,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
410
408
|
|
|
411
409
|
@property
|
|
412
410
|
@pulumi.getter
|
|
413
|
-
def user(self) -> pulumi.Output[builtins.str]:
|
|
411
|
+
def user(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
414
412
|
"""
|
|
415
413
|
The user name for vSphere API operations.
|
|
416
414
|
"""
|
pulumi_vsphere/resource_pool.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/role.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/supervisor.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/tag.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/tag_category.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/vapp_container.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/vapp_entity.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/vmfs_datastore.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|
pulumi_vsphere/vnic.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
5
|
import builtins
|