pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.2__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 +28 -0
- pulumi_vsphere/_inputs.py +566 -236
- pulumi_vsphere/_utilities.py +35 -0
- pulumi_vsphere/compute_cluster.py +747 -1477
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -20
- pulumi_vsphere/datacenter.py +33 -40
- pulumi_vsphere/datastore_cluster.py +154 -364
- pulumi_vsphere/distributed_port_group.py +126 -182
- pulumi_vsphere/distributed_virtual_switch.py +301 -819
- pulumi_vsphere/entity_permissions.py +56 -35
- pulumi_vsphere/file.py +16 -24
- pulumi_vsphere/folder.py +7 -28
- pulumi_vsphere/get_compute_cluster.py +0 -4
- pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +12 -8
- pulumi_vsphere/get_custom_attribute.py +0 -4
- pulumi_vsphere/get_datacenter.py +0 -4
- pulumi_vsphere/get_datastore.py +9 -13
- pulumi_vsphere/get_datastore_cluster.py +0 -4
- pulumi_vsphere/get_datastore_stats.py +38 -44
- pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
- pulumi_vsphere/get_dynamic.py +18 -20
- pulumi_vsphere/get_folder.py +10 -6
- pulumi_vsphere/get_guest_os_customization.py +8 -47
- pulumi_vsphere/get_host.py +0 -4
- pulumi_vsphere/get_host_base_images.py +97 -0
- pulumi_vsphere/get_host_pci_device.py +8 -14
- pulumi_vsphere/get_host_thumbprint.py +12 -16
- pulumi_vsphere/get_host_vgpu_profile.py +4 -10
- pulumi_vsphere/get_license.py +2 -5
- pulumi_vsphere/get_network.py +14 -18
- pulumi_vsphere/get_policy.py +0 -4
- pulumi_vsphere/get_resource_pool.py +14 -18
- pulumi_vsphere/get_role.py +4 -8
- pulumi_vsphere/get_tag.py +0 -4
- pulumi_vsphere/get_tag_category.py +0 -4
- pulumi_vsphere/get_vapp_container.py +0 -4
- pulumi_vsphere/get_virtual_machine.py +58 -41
- pulumi_vsphere/get_vmfs_disks.py +0 -4
- pulumi_vsphere/guest_os_customization.py +50 -0
- pulumi_vsphere/ha_vm_override.py +189 -378
- pulumi_vsphere/host.py +0 -20
- pulumi_vsphere/host_port_group.py +12 -24
- pulumi_vsphere/host_virtual_switch.py +140 -287
- pulumi_vsphere/license.py +0 -32
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/offline_software_depot.py +180 -0
- pulumi_vsphere/outputs.py +591 -270
- pulumi_vsphere/provider.py +2 -6
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +50 -24
- pulumi_vsphere/supervisor.py +962 -0
- pulumi_vsphere/virtual_disk.py +14 -20
- pulumi_vsphere/virtual_machine.py +580 -809
- pulumi_vsphere/virtual_machine_class.py +442 -0
- pulumi_vsphere/virtual_machine_snapshot.py +8 -12
- pulumi_vsphere/vm_storage_policy.py +74 -86
- pulumi_vsphere/vnic.py +61 -77
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.10.2.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/top_level.txt +0 -0
pulumi_vsphere/license.py
CHANGED
|
@@ -165,22 +165,6 @@ class License(pulumi.CustomResource):
|
|
|
165
165
|
"""
|
|
166
166
|
Provides a VMware vSphere license resource. This can be used to add and remove license keys.
|
|
167
167
|
|
|
168
|
-
## Example Usage
|
|
169
|
-
|
|
170
|
-
<!--Start PulumiCodeChooser -->
|
|
171
|
-
```python
|
|
172
|
-
import pulumi
|
|
173
|
-
import pulumi_vsphere as vsphere
|
|
174
|
-
|
|
175
|
-
license_key = vsphere.License("licenseKey",
|
|
176
|
-
labels={
|
|
177
|
-
"VpxClientLicenseLabel": "Hello World",
|
|
178
|
-
"Workflow": "Hello World",
|
|
179
|
-
},
|
|
180
|
-
license_key="452CQ-2EK54-K8742-00000-00000")
|
|
181
|
-
```
|
|
182
|
-
<!--End PulumiCodeChooser -->
|
|
183
|
-
|
|
184
168
|
:param str resource_name: The name of the resource.
|
|
185
169
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
186
170
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: A map of key/value pairs to be attached as labels (tags) to the license key.
|
|
@@ -195,22 +179,6 @@ class License(pulumi.CustomResource):
|
|
|
195
179
|
"""
|
|
196
180
|
Provides a VMware vSphere license resource. This can be used to add and remove license keys.
|
|
197
181
|
|
|
198
|
-
## Example Usage
|
|
199
|
-
|
|
200
|
-
<!--Start PulumiCodeChooser -->
|
|
201
|
-
```python
|
|
202
|
-
import pulumi
|
|
203
|
-
import pulumi_vsphere as vsphere
|
|
204
|
-
|
|
205
|
-
license_key = vsphere.License("licenseKey",
|
|
206
|
-
labels={
|
|
207
|
-
"VpxClientLicenseLabel": "Hello World",
|
|
208
|
-
"Workflow": "Hello World",
|
|
209
|
-
},
|
|
210
|
-
license_key="452CQ-2EK54-K8742-00000-00000")
|
|
211
|
-
```
|
|
212
|
-
<!--End PulumiCodeChooser -->
|
|
213
|
-
|
|
214
182
|
:param str resource_name: The name of the resource.
|
|
215
183
|
:param LicenseArgs args: The arguments to use to populate this resource's properties.
|
|
216
184
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
pulumi_vsphere/nas_datastore.py
CHANGED
|
@@ -30,7 +30,7 @@ class NasDatastoreArgs:
|
|
|
30
30
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] host_system_ids: The managed object IDs of
|
|
31
31
|
the hosts to mount the datastore on.
|
|
32
32
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
|
|
33
|
-
|
|
33
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
34
34
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
35
35
|
:param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
|
|
36
36
|
resource if changed.
|
|
@@ -104,7 +104,7 @@ class NasDatastoreArgs:
|
|
|
104
104
|
def remote_hosts(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
105
105
|
"""
|
|
106
106
|
The hostnames or IP addresses of the remote
|
|
107
|
-
|
|
107
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
108
108
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
109
109
|
"""
|
|
110
110
|
return pulumi.get(self, "remote_hosts")
|
|
@@ -303,7 +303,7 @@ class _NasDatastoreState:
|
|
|
303
303
|
:param pulumi.Input[bool] protocol_endpoint: Indicates that this NAS volume is a protocol endpoint.
|
|
304
304
|
This field is only populated if the host supports virtual datastores.
|
|
305
305
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
|
|
306
|
-
|
|
306
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
307
307
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
308
308
|
:param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
|
|
309
309
|
resource if changed.
|
|
@@ -529,7 +529,7 @@ class _NasDatastoreState:
|
|
|
529
529
|
def remote_hosts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
530
530
|
"""
|
|
531
531
|
The hostnames or IP addresses of the remote
|
|
532
|
-
|
|
532
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
533
533
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
534
534
|
"""
|
|
535
535
|
return pulumi.get(self, "remote_hosts")
|
|
@@ -665,7 +665,7 @@ class NasDatastore(pulumi.CustomResource):
|
|
|
665
665
|
:param pulumi.Input[str] name: The name of the datastore. Forces a new resource if
|
|
666
666
|
changed.
|
|
667
667
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
|
|
668
|
-
|
|
668
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
669
669
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
670
670
|
:param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
|
|
671
671
|
resource if changed.
|
|
@@ -817,7 +817,7 @@ class NasDatastore(pulumi.CustomResource):
|
|
|
817
817
|
:param pulumi.Input[bool] protocol_endpoint: Indicates that this NAS volume is a protocol endpoint.
|
|
818
818
|
This field is only populated if the host supports virtual datastores.
|
|
819
819
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
|
|
820
|
-
|
|
820
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
821
821
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
822
822
|
:param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
|
|
823
823
|
resource if changed.
|
|
@@ -981,7 +981,7 @@ class NasDatastore(pulumi.CustomResource):
|
|
|
981
981
|
def remote_hosts(self) -> pulumi.Output[Sequence[str]]:
|
|
982
982
|
"""
|
|
983
983
|
The hostnames or IP addresses of the remote
|
|
984
|
-
|
|
984
|
+
servers. Only one element should be present for NFS v3 but multiple
|
|
985
985
|
can be present for NFS v4.1. Forces a new resource if changed.
|
|
986
986
|
"""
|
|
987
987
|
return pulumi.get(self, "remote_hosts")
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
13
|
+
|
|
14
|
+
__all__ = ['OfflineSoftwareDepotArgs', 'OfflineSoftwareDepot']
|
|
15
|
+
|
|
16
|
+
@pulumi.input_type
|
|
17
|
+
class OfflineSoftwareDepotArgs:
|
|
18
|
+
def __init__(__self__, *,
|
|
19
|
+
location: pulumi.Input[str]):
|
|
20
|
+
"""
|
|
21
|
+
The set of arguments for constructing a OfflineSoftwareDepot resource.
|
|
22
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
23
|
+
"""
|
|
24
|
+
pulumi.set(__self__, "location", location)
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
@pulumi.getter
|
|
28
|
+
def location(self) -> pulumi.Input[str]:
|
|
29
|
+
"""
|
|
30
|
+
The URL where the depot source is hosted.
|
|
31
|
+
"""
|
|
32
|
+
return pulumi.get(self, "location")
|
|
33
|
+
|
|
34
|
+
@location.setter
|
|
35
|
+
def location(self, value: pulumi.Input[str]):
|
|
36
|
+
pulumi.set(self, "location", value)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@pulumi.input_type
|
|
40
|
+
class _OfflineSoftwareDepotState:
|
|
41
|
+
def __init__(__self__, *,
|
|
42
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]] = None,
|
|
43
|
+
location: Optional[pulumi.Input[str]] = None):
|
|
44
|
+
"""
|
|
45
|
+
Input properties used for looking up and filtering OfflineSoftwareDepot resources.
|
|
46
|
+
:param pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]] components: The list of custom components in the depot.
|
|
47
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
48
|
+
"""
|
|
49
|
+
if components is not None:
|
|
50
|
+
pulumi.set(__self__, "components", components)
|
|
51
|
+
if location is not None:
|
|
52
|
+
pulumi.set(__self__, "location", location)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
@pulumi.getter
|
|
56
|
+
def components(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]]:
|
|
57
|
+
"""
|
|
58
|
+
The list of custom components in the depot.
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "components")
|
|
61
|
+
|
|
62
|
+
@components.setter
|
|
63
|
+
def components(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]]):
|
|
64
|
+
pulumi.set(self, "components", value)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
|
69
|
+
"""
|
|
70
|
+
The URL where the depot source is hosted.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "location")
|
|
73
|
+
|
|
74
|
+
@location.setter
|
|
75
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
|
76
|
+
pulumi.set(self, "location", value)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class OfflineSoftwareDepot(pulumi.CustomResource):
|
|
80
|
+
@overload
|
|
81
|
+
def __init__(__self__,
|
|
82
|
+
resource_name: str,
|
|
83
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
84
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
85
|
+
__props__=None):
|
|
86
|
+
"""
|
|
87
|
+
Provides a VMware vSphere offline software depot resource.
|
|
88
|
+
|
|
89
|
+
## Example Usage
|
|
90
|
+
|
|
91
|
+
:param str resource_name: The name of the resource.
|
|
92
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
93
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
94
|
+
"""
|
|
95
|
+
...
|
|
96
|
+
@overload
|
|
97
|
+
def __init__(__self__,
|
|
98
|
+
resource_name: str,
|
|
99
|
+
args: OfflineSoftwareDepotArgs,
|
|
100
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
101
|
+
"""
|
|
102
|
+
Provides a VMware vSphere offline software depot resource.
|
|
103
|
+
|
|
104
|
+
## Example Usage
|
|
105
|
+
|
|
106
|
+
:param str resource_name: The name of the resource.
|
|
107
|
+
:param OfflineSoftwareDepotArgs args: The arguments to use to populate this resource's properties.
|
|
108
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
109
|
+
"""
|
|
110
|
+
...
|
|
111
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
112
|
+
resource_args, opts = _utilities.get_resource_args_opts(OfflineSoftwareDepotArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
113
|
+
if resource_args is not None:
|
|
114
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
115
|
+
else:
|
|
116
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
117
|
+
|
|
118
|
+
def _internal_init(__self__,
|
|
119
|
+
resource_name: str,
|
|
120
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
121
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
122
|
+
__props__=None):
|
|
123
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
124
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
125
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
126
|
+
if opts.id is None:
|
|
127
|
+
if __props__ is not None:
|
|
128
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
129
|
+
__props__ = OfflineSoftwareDepotArgs.__new__(OfflineSoftwareDepotArgs)
|
|
130
|
+
|
|
131
|
+
if location is None and not opts.urn:
|
|
132
|
+
raise TypeError("Missing required property 'location'")
|
|
133
|
+
__props__.__dict__["location"] = location
|
|
134
|
+
__props__.__dict__["components"] = None
|
|
135
|
+
super(OfflineSoftwareDepot, __self__).__init__(
|
|
136
|
+
'vsphere:index/offlineSoftwareDepot:OfflineSoftwareDepot',
|
|
137
|
+
resource_name,
|
|
138
|
+
__props__,
|
|
139
|
+
opts)
|
|
140
|
+
|
|
141
|
+
@staticmethod
|
|
142
|
+
def get(resource_name: str,
|
|
143
|
+
id: pulumi.Input[str],
|
|
144
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
145
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]]] = None,
|
|
146
|
+
location: Optional[pulumi.Input[str]] = None) -> 'OfflineSoftwareDepot':
|
|
147
|
+
"""
|
|
148
|
+
Get an existing OfflineSoftwareDepot resource's state with the given name, id, and optional extra
|
|
149
|
+
properties used to qualify the lookup.
|
|
150
|
+
|
|
151
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
152
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
153
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
154
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]] components: The list of custom components in the depot.
|
|
155
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
156
|
+
"""
|
|
157
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
158
|
+
|
|
159
|
+
__props__ = _OfflineSoftwareDepotState.__new__(_OfflineSoftwareDepotState)
|
|
160
|
+
|
|
161
|
+
__props__.__dict__["components"] = components
|
|
162
|
+
__props__.__dict__["location"] = location
|
|
163
|
+
return OfflineSoftwareDepot(resource_name, opts=opts, __props__=__props__)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def components(self) -> pulumi.Output[Sequence['outputs.OfflineSoftwareDepotComponent']]:
|
|
168
|
+
"""
|
|
169
|
+
The list of custom components in the depot.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "components")
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter
|
|
175
|
+
def location(self) -> pulumi.Output[str]:
|
|
176
|
+
"""
|
|
177
|
+
The URL where the depot source is hosted.
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "location")
|
|
180
|
+
|