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
pulumi_vsphere/vnic.py CHANGED
@@ -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
  from . import outputs
12
17
  from ._inputs import *
@@ -16,28 +21,28 @@ __all__ = ['VnicArgs', 'Vnic']
16
21
  @pulumi.input_type
17
22
  class VnicArgs:
18
23
  def __init__(__self__, *,
19
- host: pulumi.Input[str],
20
- distributed_port_group: Optional[pulumi.Input[str]] = None,
21
- distributed_switch_port: Optional[pulumi.Input[str]] = None,
24
+ host: pulumi.Input[_builtins.str],
25
+ distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
26
+ distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
22
27
  ipv4: Optional[pulumi.Input['VnicIpv4Args']] = None,
23
28
  ipv6: Optional[pulumi.Input['VnicIpv6Args']] = None,
24
- mac: Optional[pulumi.Input[str]] = None,
25
- mtu: Optional[pulumi.Input[int]] = None,
26
- netstack: Optional[pulumi.Input[str]] = None,
27
- portgroup: Optional[pulumi.Input[str]] = None,
28
- services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
29
+ mac: Optional[pulumi.Input[_builtins.str]] = None,
30
+ mtu: Optional[pulumi.Input[_builtins.int]] = None,
31
+ netstack: Optional[pulumi.Input[_builtins.str]] = None,
32
+ portgroup: Optional[pulumi.Input[_builtins.str]] = None,
33
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
29
34
  """
30
35
  The set of arguments for constructing a Vnic resource.
31
- :param pulumi.Input[str] host: ESX host the interface belongs to
32
- :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
33
- :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
36
+ :param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
37
+ :param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
38
+ :param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
34
39
  :param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
35
40
  :param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
36
- :param pulumi.Input[str] mac: MAC address of the interface.
37
- :param pulumi.Input[int] mtu: MTU of the interface.
38
- :param pulumi.Input[str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
39
- :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
40
- :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
41
+ :param pulumi.Input[_builtins.str] mac: MAC address of the interface.
42
+ :param pulumi.Input[_builtins.int] mtu: MTU of the interface.
43
+ :param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
44
+ :param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
45
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
41
46
  """
42
47
  pulumi.set(__self__, "host", host)
43
48
  if distributed_port_group is not None:
@@ -59,43 +64,43 @@ class VnicArgs:
59
64
  if services is not None:
60
65
  pulumi.set(__self__, "services", services)
61
66
 
62
- @property
67
+ @_builtins.property
63
68
  @pulumi.getter
64
- def host(self) -> pulumi.Input[str]:
69
+ def host(self) -> pulumi.Input[_builtins.str]:
65
70
  """
66
71
  ESX host the interface belongs to
67
72
  """
68
73
  return pulumi.get(self, "host")
69
74
 
70
75
  @host.setter
71
- def host(self, value: pulumi.Input[str]):
76
+ def host(self, value: pulumi.Input[_builtins.str]):
72
77
  pulumi.set(self, "host", value)
73
78
 
74
- @property
79
+ @_builtins.property
75
80
  @pulumi.getter(name="distributedPortGroup")
76
- def distributed_port_group(self) -> Optional[pulumi.Input[str]]:
81
+ def distributed_port_group(self) -> Optional[pulumi.Input[_builtins.str]]:
77
82
  """
78
83
  Key of the distributed portgroup the nic will connect to.
79
84
  """
80
85
  return pulumi.get(self, "distributed_port_group")
81
86
 
82
87
  @distributed_port_group.setter
83
- def distributed_port_group(self, value: Optional[pulumi.Input[str]]):
88
+ def distributed_port_group(self, value: Optional[pulumi.Input[_builtins.str]]):
84
89
  pulumi.set(self, "distributed_port_group", value)
85
90
 
86
- @property
91
+ @_builtins.property
87
92
  @pulumi.getter(name="distributedSwitchPort")
88
- def distributed_switch_port(self) -> Optional[pulumi.Input[str]]:
93
+ def distributed_switch_port(self) -> Optional[pulumi.Input[_builtins.str]]:
89
94
  """
90
- UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
95
+ UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
91
96
  """
92
97
  return pulumi.get(self, "distributed_switch_port")
93
98
 
94
99
  @distributed_switch_port.setter
95
- def distributed_switch_port(self, value: Optional[pulumi.Input[str]]):
100
+ def distributed_switch_port(self, value: Optional[pulumi.Input[_builtins.str]]):
96
101
  pulumi.set(self, "distributed_switch_port", value)
97
102
 
98
- @property
103
+ @_builtins.property
99
104
  @pulumi.getter
100
105
  def ipv4(self) -> Optional[pulumi.Input['VnicIpv4Args']]:
101
106
  """
@@ -107,7 +112,7 @@ class VnicArgs:
107
112
  def ipv4(self, value: Optional[pulumi.Input['VnicIpv4Args']]):
108
113
  pulumi.set(self, "ipv4", value)
109
114
 
110
- @property
115
+ @_builtins.property
111
116
  @pulumi.getter
112
117
  def ipv6(self) -> Optional[pulumi.Input['VnicIpv6Args']]:
113
118
  """
@@ -119,92 +124,92 @@ class VnicArgs:
119
124
  def ipv6(self, value: Optional[pulumi.Input['VnicIpv6Args']]):
120
125
  pulumi.set(self, "ipv6", value)
121
126
 
122
- @property
127
+ @_builtins.property
123
128
  @pulumi.getter
124
- def mac(self) -> Optional[pulumi.Input[str]]:
129
+ def mac(self) -> Optional[pulumi.Input[_builtins.str]]:
125
130
  """
126
131
  MAC address of the interface.
127
132
  """
128
133
  return pulumi.get(self, "mac")
129
134
 
130
135
  @mac.setter
131
- def mac(self, value: Optional[pulumi.Input[str]]):
136
+ def mac(self, value: Optional[pulumi.Input[_builtins.str]]):
132
137
  pulumi.set(self, "mac", value)
133
138
 
134
- @property
139
+ @_builtins.property
135
140
  @pulumi.getter
136
- def mtu(self) -> Optional[pulumi.Input[int]]:
141
+ def mtu(self) -> Optional[pulumi.Input[_builtins.int]]:
137
142
  """
138
143
  MTU of the interface.
139
144
  """
140
145
  return pulumi.get(self, "mtu")
141
146
 
142
147
  @mtu.setter
143
- def mtu(self, value: Optional[pulumi.Input[int]]):
148
+ def mtu(self, value: Optional[pulumi.Input[_builtins.int]]):
144
149
  pulumi.set(self, "mtu", value)
145
150
 
146
- @property
151
+ @_builtins.property
147
152
  @pulumi.getter
148
- def netstack(self) -> Optional[pulumi.Input[str]]:
153
+ def netstack(self) -> Optional[pulumi.Input[_builtins.str]]:
149
154
  """
150
155
  TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
151
156
  """
152
157
  return pulumi.get(self, "netstack")
153
158
 
154
159
  @netstack.setter
155
- def netstack(self, value: Optional[pulumi.Input[str]]):
160
+ def netstack(self, value: Optional[pulumi.Input[_builtins.str]]):
156
161
  pulumi.set(self, "netstack", value)
157
162
 
158
- @property
163
+ @_builtins.property
159
164
  @pulumi.getter
160
- def portgroup(self) -> Optional[pulumi.Input[str]]:
165
+ def portgroup(self) -> Optional[pulumi.Input[_builtins.str]]:
161
166
  """
162
167
  Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
163
168
  """
164
169
  return pulumi.get(self, "portgroup")
165
170
 
166
171
  @portgroup.setter
167
- def portgroup(self, value: Optional[pulumi.Input[str]]):
172
+ def portgroup(self, value: Optional[pulumi.Input[_builtins.str]]):
168
173
  pulumi.set(self, "portgroup", value)
169
174
 
170
- @property
175
+ @_builtins.property
171
176
  @pulumi.getter
172
- def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
177
+ def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
173
178
  """
174
179
  Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
175
180
  """
176
181
  return pulumi.get(self, "services")
177
182
 
178
183
  @services.setter
179
- def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
184
+ def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
180
185
  pulumi.set(self, "services", value)
181
186
 
182
187
 
183
188
  @pulumi.input_type
184
189
  class _VnicState:
185
190
  def __init__(__self__, *,
186
- distributed_port_group: Optional[pulumi.Input[str]] = None,
187
- distributed_switch_port: Optional[pulumi.Input[str]] = None,
188
- host: Optional[pulumi.Input[str]] = None,
191
+ distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
192
+ distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
193
+ host: Optional[pulumi.Input[_builtins.str]] = None,
189
194
  ipv4: Optional[pulumi.Input['VnicIpv4Args']] = None,
190
195
  ipv6: Optional[pulumi.Input['VnicIpv6Args']] = None,
191
- mac: Optional[pulumi.Input[str]] = None,
192
- mtu: Optional[pulumi.Input[int]] = None,
193
- netstack: Optional[pulumi.Input[str]] = None,
194
- portgroup: Optional[pulumi.Input[str]] = None,
195
- services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
196
+ mac: Optional[pulumi.Input[_builtins.str]] = None,
197
+ mtu: Optional[pulumi.Input[_builtins.int]] = None,
198
+ netstack: Optional[pulumi.Input[_builtins.str]] = None,
199
+ portgroup: Optional[pulumi.Input[_builtins.str]] = None,
200
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
196
201
  """
197
202
  Input properties used for looking up and filtering Vnic resources.
198
- :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
199
- :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
200
- :param pulumi.Input[str] host: ESX host the interface belongs to
203
+ :param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
204
+ :param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
205
+ :param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
201
206
  :param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
202
207
  :param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
203
- :param pulumi.Input[str] mac: MAC address of the interface.
204
- :param pulumi.Input[int] mtu: MTU of the interface.
205
- :param pulumi.Input[str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
206
- :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
207
- :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
208
+ :param pulumi.Input[_builtins.str] mac: MAC address of the interface.
209
+ :param pulumi.Input[_builtins.int] mtu: MTU of the interface.
210
+ :param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
211
+ :param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
212
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
208
213
  """
209
214
  if distributed_port_group is not None:
210
215
  pulumi.set(__self__, "distributed_port_group", distributed_port_group)
@@ -227,43 +232,43 @@ class _VnicState:
227
232
  if services is not None:
228
233
  pulumi.set(__self__, "services", services)
229
234
 
230
- @property
235
+ @_builtins.property
231
236
  @pulumi.getter(name="distributedPortGroup")
232
- def distributed_port_group(self) -> Optional[pulumi.Input[str]]:
237
+ def distributed_port_group(self) -> Optional[pulumi.Input[_builtins.str]]:
233
238
  """
234
239
  Key of the distributed portgroup the nic will connect to.
235
240
  """
236
241
  return pulumi.get(self, "distributed_port_group")
237
242
 
238
243
  @distributed_port_group.setter
239
- def distributed_port_group(self, value: Optional[pulumi.Input[str]]):
244
+ def distributed_port_group(self, value: Optional[pulumi.Input[_builtins.str]]):
240
245
  pulumi.set(self, "distributed_port_group", value)
241
246
 
242
- @property
247
+ @_builtins.property
243
248
  @pulumi.getter(name="distributedSwitchPort")
244
- def distributed_switch_port(self) -> Optional[pulumi.Input[str]]:
249
+ def distributed_switch_port(self) -> Optional[pulumi.Input[_builtins.str]]:
245
250
  """
246
- UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
251
+ UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
247
252
  """
248
253
  return pulumi.get(self, "distributed_switch_port")
249
254
 
250
255
  @distributed_switch_port.setter
251
- def distributed_switch_port(self, value: Optional[pulumi.Input[str]]):
256
+ def distributed_switch_port(self, value: Optional[pulumi.Input[_builtins.str]]):
252
257
  pulumi.set(self, "distributed_switch_port", value)
253
258
 
254
- @property
259
+ @_builtins.property
255
260
  @pulumi.getter
256
- def host(self) -> Optional[pulumi.Input[str]]:
261
+ def host(self) -> Optional[pulumi.Input[_builtins.str]]:
257
262
  """
258
263
  ESX host the interface belongs to
259
264
  """
260
265
  return pulumi.get(self, "host")
261
266
 
262
267
  @host.setter
263
- def host(self, value: Optional[pulumi.Input[str]]):
268
+ def host(self, value: Optional[pulumi.Input[_builtins.str]]):
264
269
  pulumi.set(self, "host", value)
265
270
 
266
- @property
271
+ @_builtins.property
267
272
  @pulumi.getter
268
273
  def ipv4(self) -> Optional[pulumi.Input['VnicIpv4Args']]:
269
274
  """
@@ -275,7 +280,7 @@ class _VnicState:
275
280
  def ipv4(self, value: Optional[pulumi.Input['VnicIpv4Args']]):
276
281
  pulumi.set(self, "ipv4", value)
277
282
 
278
- @property
283
+ @_builtins.property
279
284
  @pulumi.getter
280
285
  def ipv6(self) -> Optional[pulumi.Input['VnicIpv6Args']]:
281
286
  """
@@ -287,172 +292,179 @@ class _VnicState:
287
292
  def ipv6(self, value: Optional[pulumi.Input['VnicIpv6Args']]):
288
293
  pulumi.set(self, "ipv6", value)
289
294
 
290
- @property
295
+ @_builtins.property
291
296
  @pulumi.getter
292
- def mac(self) -> Optional[pulumi.Input[str]]:
297
+ def mac(self) -> Optional[pulumi.Input[_builtins.str]]:
293
298
  """
294
299
  MAC address of the interface.
295
300
  """
296
301
  return pulumi.get(self, "mac")
297
302
 
298
303
  @mac.setter
299
- def mac(self, value: Optional[pulumi.Input[str]]):
304
+ def mac(self, value: Optional[pulumi.Input[_builtins.str]]):
300
305
  pulumi.set(self, "mac", value)
301
306
 
302
- @property
307
+ @_builtins.property
303
308
  @pulumi.getter
304
- def mtu(self) -> Optional[pulumi.Input[int]]:
309
+ def mtu(self) -> Optional[pulumi.Input[_builtins.int]]:
305
310
  """
306
311
  MTU of the interface.
307
312
  """
308
313
  return pulumi.get(self, "mtu")
309
314
 
310
315
  @mtu.setter
311
- def mtu(self, value: Optional[pulumi.Input[int]]):
316
+ def mtu(self, value: Optional[pulumi.Input[_builtins.int]]):
312
317
  pulumi.set(self, "mtu", value)
313
318
 
314
- @property
319
+ @_builtins.property
315
320
  @pulumi.getter
316
- def netstack(self) -> Optional[pulumi.Input[str]]:
321
+ def netstack(self) -> Optional[pulumi.Input[_builtins.str]]:
317
322
  """
318
323
  TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
319
324
  """
320
325
  return pulumi.get(self, "netstack")
321
326
 
322
327
  @netstack.setter
323
- def netstack(self, value: Optional[pulumi.Input[str]]):
328
+ def netstack(self, value: Optional[pulumi.Input[_builtins.str]]):
324
329
  pulumi.set(self, "netstack", value)
325
330
 
326
- @property
331
+ @_builtins.property
327
332
  @pulumi.getter
328
- def portgroup(self) -> Optional[pulumi.Input[str]]:
333
+ def portgroup(self) -> Optional[pulumi.Input[_builtins.str]]:
329
334
  """
330
335
  Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
331
336
  """
332
337
  return pulumi.get(self, "portgroup")
333
338
 
334
339
  @portgroup.setter
335
- def portgroup(self, value: Optional[pulumi.Input[str]]):
340
+ def portgroup(self, value: Optional[pulumi.Input[_builtins.str]]):
336
341
  pulumi.set(self, "portgroup", value)
337
342
 
338
- @property
343
+ @_builtins.property
339
344
  @pulumi.getter
340
- def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
345
+ def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
341
346
  """
342
347
  Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
343
348
  """
344
349
  return pulumi.get(self, "services")
345
350
 
346
351
  @services.setter
347
- def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
352
+ def services(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
348
353
  pulumi.set(self, "services", value)
349
354
 
350
355
 
356
+ @pulumi.type_token("vsphere:index/vnic:Vnic")
351
357
  class Vnic(pulumi.CustomResource):
352
358
  @overload
353
359
  def __init__(__self__,
354
360
  resource_name: str,
355
361
  opts: Optional[pulumi.ResourceOptions] = None,
356
- distributed_port_group: Optional[pulumi.Input[str]] = None,
357
- distributed_switch_port: Optional[pulumi.Input[str]] = None,
358
- host: Optional[pulumi.Input[str]] = None,
359
- ipv4: Optional[pulumi.Input[pulumi.InputType['VnicIpv4Args']]] = None,
360
- ipv6: Optional[pulumi.Input[pulumi.InputType['VnicIpv6Args']]] = None,
361
- mac: Optional[pulumi.Input[str]] = None,
362
- mtu: Optional[pulumi.Input[int]] = None,
363
- netstack: Optional[pulumi.Input[str]] = None,
364
- portgroup: Optional[pulumi.Input[str]] = None,
365
- services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
362
+ distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
363
+ distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
364
+ host: Optional[pulumi.Input[_builtins.str]] = None,
365
+ ipv4: Optional[pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']]] = None,
366
+ ipv6: Optional[pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']]] = None,
367
+ mac: Optional[pulumi.Input[_builtins.str]] = None,
368
+ mtu: Optional[pulumi.Input[_builtins.int]] = None,
369
+ netstack: Optional[pulumi.Input[_builtins.str]] = None,
370
+ portgroup: Optional[pulumi.Input[_builtins.str]] = None,
371
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
366
372
  __props__=None):
367
373
  """
368
374
  Provides a VMware vSphere vnic resource.
369
375
 
370
376
  ## Example Usage
371
377
 
372
- ### S
373
378
  ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack
374
379
 
375
380
  ```python
376
381
  import pulumi
377
382
  import pulumi_vsphere as vsphere
378
383
 
379
- dc = vsphere.get_datacenter(name="mydc")
380
- h1 = vsphere.get_host(name="esxi1.host.test",
381
- datacenter_id=dc.id)
382
- d1 = vsphere.DistributedVirtualSwitch("d1",
383
- datacenter_id=dc.id,
384
- hosts=[vsphere.DistributedVirtualSwitchHostArgs(
385
- host_system_id=h1.id,
386
- devices=["vnic3"],
387
- )])
388
- p1 = vsphere.DistributedPortGroup("p1",
384
+ datacenter = vsphere.get_datacenter(name="dc-01")
385
+ host = vsphere.get_host(name="esxi-01.example.com",
386
+ datacenter_id=datacenter.id)
387
+ vds = vsphere.DistributedVirtualSwitch("vds",
388
+ name="vds-01",
389
+ datacenter_id=datacenter.id,
390
+ hosts=[{
391
+ "host_system_id": host.id,
392
+ "devices": ["vnic3"],
393
+ }])
394
+ pg = vsphere.DistributedPortGroup("pg",
395
+ name="pg-01",
389
396
  vlan_id=1234,
390
- distributed_virtual_switch_uuid=d1.id)
391
- v1 = vsphere.Vnic("v1",
392
- host=h1.id,
393
- distributed_switch_port=d1.id,
394
- distributed_port_group=p1.id,
395
- ipv4=vsphere.VnicIpv4Args(
396
- dhcp=True,
397
- ),
397
+ distributed_virtual_switch_uuid=vds.id)
398
+ vnic = vsphere.Vnic("vnic",
399
+ host=host.id,
400
+ distributed_switch_port=vds.id,
401
+ distributed_port_group=pg.id,
402
+ ipv4={
403
+ "dhcp": True,
404
+ },
398
405
  netstack="vmotion")
399
406
  ```
407
+
400
408
  ### Create a vnic attached to a portgroup using the default TCP/IP stack
401
409
 
402
410
  ```python
403
411
  import pulumi
404
412
  import pulumi_vsphere as vsphere
405
413
 
406
- dc = vsphere.get_datacenter(name="mydc")
407
- h1 = vsphere.get_host(name="esxi1.host.test",
408
- datacenter_id=dc.id)
409
- hvs1 = vsphere.HostVirtualSwitch("hvs1",
410
- host_system_id=h1.id,
414
+ datacenter = vsphere.get_datacenter(name="dc-01")
415
+ host = vsphere.get_host(name="esxi-01.example.com",
416
+ datacenter_id=datacenter.id)
417
+ hvs = vsphere.HostVirtualSwitch("hvs",
418
+ name="hvs-01",
419
+ host_system_id=host.id,
411
420
  network_adapters=[
412
421
  "vmnic3",
413
422
  "vmnic4",
414
423
  ],
415
424
  active_nics=["vmnic3"],
416
425
  standby_nics=["vmnic4"])
417
- p1 = vsphere.HostPortGroup("p1",
418
- virtual_switch_name=hvs1.name,
419
- host_system_id=h1.id)
420
- v1 = vsphere.Vnic("v1",
421
- host=h1.id,
422
- portgroup=p1.name,
423
- ipv4=vsphere.VnicIpv4Args(
424
- dhcp=True,
425
- ),
426
+ pg = vsphere.HostPortGroup("pg",
427
+ name="pg-01",
428
+ virtual_switch_name=hvs.name,
429
+ host_system_id=host.id)
430
+ vnic = vsphere.Vnic("vnic",
431
+ host=host.id,
432
+ portgroup=pg.name,
433
+ ipv4={
434
+ "dhcp": True,
435
+ },
426
436
  services=[
427
437
  "vsan",
428
438
  "management",
429
439
  ])
430
440
  ```
431
- ## Importing
432
441
 
433
- An existing vNic can be [imported][docs-import] into this resource
442
+ ## Import
443
+
444
+ An existing vNic can be imported into this resource
445
+
434
446
  via supplying the vNic's ID. An example is below:
435
447
 
436
448
  [docs-import]: /docs/import/index.html
437
449
 
438
- ```python
439
- import pulumi
450
+ ```sh
451
+ $ pulumi import vsphere:index/vnic:Vnic vnic host-123_vmk2
440
452
  ```
441
453
 
442
454
  The above would import the vnic `vmk2` from host with ID `host-123`.
443
455
 
444
456
  :param str resource_name: The name of the resource.
445
457
  :param pulumi.ResourceOptions opts: Options for the resource.
446
- :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
447
- :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
448
- :param pulumi.Input[str] host: ESX host the interface belongs to
449
- :param pulumi.Input[pulumi.InputType['VnicIpv4Args']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
450
- :param pulumi.Input[pulumi.InputType['VnicIpv6Args']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
451
- :param pulumi.Input[str] mac: MAC address of the interface.
452
- :param pulumi.Input[int] mtu: MTU of the interface.
453
- :param pulumi.Input[str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
454
- :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
455
- :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
458
+ :param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
459
+ :param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
460
+ :param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
461
+ :param pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
462
+ :param pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
463
+ :param pulumi.Input[_builtins.str] mac: MAC address of the interface.
464
+ :param pulumi.Input[_builtins.int] mtu: MTU of the interface.
465
+ :param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
466
+ :param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
467
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
456
468
  """
457
469
  ...
458
470
  @overload
@@ -465,74 +477,80 @@ class Vnic(pulumi.CustomResource):
465
477
 
466
478
  ## Example Usage
467
479
 
468
- ### S
469
480
  ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack
470
481
 
471
482
  ```python
472
483
  import pulumi
473
484
  import pulumi_vsphere as vsphere
474
485
 
475
- dc = vsphere.get_datacenter(name="mydc")
476
- h1 = vsphere.get_host(name="esxi1.host.test",
477
- datacenter_id=dc.id)
478
- d1 = vsphere.DistributedVirtualSwitch("d1",
479
- datacenter_id=dc.id,
480
- hosts=[vsphere.DistributedVirtualSwitchHostArgs(
481
- host_system_id=h1.id,
482
- devices=["vnic3"],
483
- )])
484
- p1 = vsphere.DistributedPortGroup("p1",
486
+ datacenter = vsphere.get_datacenter(name="dc-01")
487
+ host = vsphere.get_host(name="esxi-01.example.com",
488
+ datacenter_id=datacenter.id)
489
+ vds = vsphere.DistributedVirtualSwitch("vds",
490
+ name="vds-01",
491
+ datacenter_id=datacenter.id,
492
+ hosts=[{
493
+ "host_system_id": host.id,
494
+ "devices": ["vnic3"],
495
+ }])
496
+ pg = vsphere.DistributedPortGroup("pg",
497
+ name="pg-01",
485
498
  vlan_id=1234,
486
- distributed_virtual_switch_uuid=d1.id)
487
- v1 = vsphere.Vnic("v1",
488
- host=h1.id,
489
- distributed_switch_port=d1.id,
490
- distributed_port_group=p1.id,
491
- ipv4=vsphere.VnicIpv4Args(
492
- dhcp=True,
493
- ),
499
+ distributed_virtual_switch_uuid=vds.id)
500
+ vnic = vsphere.Vnic("vnic",
501
+ host=host.id,
502
+ distributed_switch_port=vds.id,
503
+ distributed_port_group=pg.id,
504
+ ipv4={
505
+ "dhcp": True,
506
+ },
494
507
  netstack="vmotion")
495
508
  ```
509
+
496
510
  ### Create a vnic attached to a portgroup using the default TCP/IP stack
497
511
 
498
512
  ```python
499
513
  import pulumi
500
514
  import pulumi_vsphere as vsphere
501
515
 
502
- dc = vsphere.get_datacenter(name="mydc")
503
- h1 = vsphere.get_host(name="esxi1.host.test",
504
- datacenter_id=dc.id)
505
- hvs1 = vsphere.HostVirtualSwitch("hvs1",
506
- host_system_id=h1.id,
516
+ datacenter = vsphere.get_datacenter(name="dc-01")
517
+ host = vsphere.get_host(name="esxi-01.example.com",
518
+ datacenter_id=datacenter.id)
519
+ hvs = vsphere.HostVirtualSwitch("hvs",
520
+ name="hvs-01",
521
+ host_system_id=host.id,
507
522
  network_adapters=[
508
523
  "vmnic3",
509
524
  "vmnic4",
510
525
  ],
511
526
  active_nics=["vmnic3"],
512
527
  standby_nics=["vmnic4"])
513
- p1 = vsphere.HostPortGroup("p1",
514
- virtual_switch_name=hvs1.name,
515
- host_system_id=h1.id)
516
- v1 = vsphere.Vnic("v1",
517
- host=h1.id,
518
- portgroup=p1.name,
519
- ipv4=vsphere.VnicIpv4Args(
520
- dhcp=True,
521
- ),
528
+ pg = vsphere.HostPortGroup("pg",
529
+ name="pg-01",
530
+ virtual_switch_name=hvs.name,
531
+ host_system_id=host.id)
532
+ vnic = vsphere.Vnic("vnic",
533
+ host=host.id,
534
+ portgroup=pg.name,
535
+ ipv4={
536
+ "dhcp": True,
537
+ },
522
538
  services=[
523
539
  "vsan",
524
540
  "management",
525
541
  ])
526
542
  ```
527
- ## Importing
528
543
 
529
- An existing vNic can be [imported][docs-import] into this resource
544
+ ## Import
545
+
546
+ An existing vNic can be imported into this resource
547
+
530
548
  via supplying the vNic's ID. An example is below:
531
549
 
532
550
  [docs-import]: /docs/import/index.html
533
551
 
534
- ```python
535
- import pulumi
552
+ ```sh
553
+ $ pulumi import vsphere:index/vnic:Vnic vnic host-123_vmk2
536
554
  ```
537
555
 
538
556
  The above would import the vnic `vmk2` from host with ID `host-123`.
@@ -552,16 +570,16 @@ class Vnic(pulumi.CustomResource):
552
570
  def _internal_init(__self__,
553
571
  resource_name: str,
554
572
  opts: Optional[pulumi.ResourceOptions] = None,
555
- distributed_port_group: Optional[pulumi.Input[str]] = None,
556
- distributed_switch_port: Optional[pulumi.Input[str]] = None,
557
- host: Optional[pulumi.Input[str]] = None,
558
- ipv4: Optional[pulumi.Input[pulumi.InputType['VnicIpv4Args']]] = None,
559
- ipv6: Optional[pulumi.Input[pulumi.InputType['VnicIpv6Args']]] = None,
560
- mac: Optional[pulumi.Input[str]] = None,
561
- mtu: Optional[pulumi.Input[int]] = None,
562
- netstack: Optional[pulumi.Input[str]] = None,
563
- portgroup: Optional[pulumi.Input[str]] = None,
564
- services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
573
+ distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
574
+ distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
575
+ host: Optional[pulumi.Input[_builtins.str]] = None,
576
+ ipv4: Optional[pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']]] = None,
577
+ ipv6: Optional[pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']]] = None,
578
+ mac: Optional[pulumi.Input[_builtins.str]] = None,
579
+ mtu: Optional[pulumi.Input[_builtins.int]] = None,
580
+ netstack: Optional[pulumi.Input[_builtins.str]] = None,
581
+ portgroup: Optional[pulumi.Input[_builtins.str]] = None,
582
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
565
583
  __props__=None):
566
584
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
567
585
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -593,16 +611,16 @@ class Vnic(pulumi.CustomResource):
593
611
  def get(resource_name: str,
594
612
  id: pulumi.Input[str],
595
613
  opts: Optional[pulumi.ResourceOptions] = None,
596
- distributed_port_group: Optional[pulumi.Input[str]] = None,
597
- distributed_switch_port: Optional[pulumi.Input[str]] = None,
598
- host: Optional[pulumi.Input[str]] = None,
599
- ipv4: Optional[pulumi.Input[pulumi.InputType['VnicIpv4Args']]] = None,
600
- ipv6: Optional[pulumi.Input[pulumi.InputType['VnicIpv6Args']]] = None,
601
- mac: Optional[pulumi.Input[str]] = None,
602
- mtu: Optional[pulumi.Input[int]] = None,
603
- netstack: Optional[pulumi.Input[str]] = None,
604
- portgroup: Optional[pulumi.Input[str]] = None,
605
- services: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'Vnic':
614
+ distributed_port_group: Optional[pulumi.Input[_builtins.str]] = None,
615
+ distributed_switch_port: Optional[pulumi.Input[_builtins.str]] = None,
616
+ host: Optional[pulumi.Input[_builtins.str]] = None,
617
+ ipv4: Optional[pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']]] = None,
618
+ ipv6: Optional[pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']]] = None,
619
+ mac: Optional[pulumi.Input[_builtins.str]] = None,
620
+ mtu: Optional[pulumi.Input[_builtins.int]] = None,
621
+ netstack: Optional[pulumi.Input[_builtins.str]] = None,
622
+ portgroup: Optional[pulumi.Input[_builtins.str]] = None,
623
+ services: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'Vnic':
606
624
  """
607
625
  Get an existing Vnic resource's state with the given name, id, and optional extra
608
626
  properties used to qualify the lookup.
@@ -610,16 +628,16 @@ class Vnic(pulumi.CustomResource):
610
628
  :param str resource_name: The unique name of the resulting resource.
611
629
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
612
630
  :param pulumi.ResourceOptions opts: Options for the resource.
613
- :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
614
- :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
615
- :param pulumi.Input[str] host: ESX host the interface belongs to
616
- :param pulumi.Input[pulumi.InputType['VnicIpv4Args']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
617
- :param pulumi.Input[pulumi.InputType['VnicIpv6Args']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
618
- :param pulumi.Input[str] mac: MAC address of the interface.
619
- :param pulumi.Input[int] mtu: MTU of the interface.
620
- :param pulumi.Input[str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
621
- :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
622
- :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
631
+ :param pulumi.Input[_builtins.str] distributed_port_group: Key of the distributed portgroup the nic will connect to.
632
+ :param pulumi.Input[_builtins.str] distributed_switch_port: UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
633
+ :param pulumi.Input[_builtins.str] host: ESX host the interface belongs to
634
+ :param pulumi.Input[Union['VnicIpv4Args', 'VnicIpv4ArgsDict']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
635
+ :param pulumi.Input[Union['VnicIpv6Args', 'VnicIpv6ArgsDict']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
636
+ :param pulumi.Input[_builtins.str] mac: MAC address of the interface.
637
+ :param pulumi.Input[_builtins.int] mtu: MTU of the interface.
638
+ :param pulumi.Input[_builtins.str] netstack: TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
639
+ :param pulumi.Input[_builtins.str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
640
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
623
641
  """
624
642
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
625
643
 
@@ -637,31 +655,31 @@ class Vnic(pulumi.CustomResource):
637
655
  __props__.__dict__["services"] = services
638
656
  return Vnic(resource_name, opts=opts, __props__=__props__)
639
657
 
640
- @property
658
+ @_builtins.property
641
659
  @pulumi.getter(name="distributedPortGroup")
642
- def distributed_port_group(self) -> pulumi.Output[Optional[str]]:
660
+ def distributed_port_group(self) -> pulumi.Output[Optional[_builtins.str]]:
643
661
  """
644
662
  Key of the distributed portgroup the nic will connect to.
645
663
  """
646
664
  return pulumi.get(self, "distributed_port_group")
647
665
 
648
- @property
666
+ @_builtins.property
649
667
  @pulumi.getter(name="distributedSwitchPort")
650
- def distributed_switch_port(self) -> pulumi.Output[Optional[str]]:
668
+ def distributed_switch_port(self) -> pulumi.Output[Optional[_builtins.str]]:
651
669
  """
652
- UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup.
670
+ UUID of the vdswitch the nic will be attached to. Do not set if you set portgroup.
653
671
  """
654
672
  return pulumi.get(self, "distributed_switch_port")
655
673
 
656
- @property
674
+ @_builtins.property
657
675
  @pulumi.getter
658
- def host(self) -> pulumi.Output[str]:
676
+ def host(self) -> pulumi.Output[_builtins.str]:
659
677
  """
660
678
  ESX host the interface belongs to
661
679
  """
662
680
  return pulumi.get(self, "host")
663
681
 
664
- @property
682
+ @_builtins.property
665
683
  @pulumi.getter
666
684
  def ipv4(self) -> pulumi.Output[Optional['outputs.VnicIpv4']]:
667
685
  """
@@ -669,7 +687,7 @@ class Vnic(pulumi.CustomResource):
669
687
  """
670
688
  return pulumi.get(self, "ipv4")
671
689
 
672
- @property
690
+ @_builtins.property
673
691
  @pulumi.getter
674
692
  def ipv6(self) -> pulumi.Output[Optional['outputs.VnicIpv6']]:
675
693
  """
@@ -677,41 +695,41 @@ class Vnic(pulumi.CustomResource):
677
695
  """
678
696
  return pulumi.get(self, "ipv6")
679
697
 
680
- @property
698
+ @_builtins.property
681
699
  @pulumi.getter
682
- def mac(self) -> pulumi.Output[str]:
700
+ def mac(self) -> pulumi.Output[_builtins.str]:
683
701
  """
684
702
  MAC address of the interface.
685
703
  """
686
704
  return pulumi.get(self, "mac")
687
705
 
688
- @property
706
+ @_builtins.property
689
707
  @pulumi.getter
690
- def mtu(self) -> pulumi.Output[int]:
708
+ def mtu(self) -> pulumi.Output[_builtins.int]:
691
709
  """
692
710
  MTU of the interface.
693
711
  """
694
712
  return pulumi.get(self, "mtu")
695
713
 
696
- @property
714
+ @_builtins.property
697
715
  @pulumi.getter
698
- def netstack(self) -> pulumi.Output[Optional[str]]:
716
+ def netstack(self) -> pulumi.Output[Optional[_builtins.str]]:
699
717
  """
700
718
  TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
701
719
  """
702
720
  return pulumi.get(self, "netstack")
703
721
 
704
- @property
722
+ @_builtins.property
705
723
  @pulumi.getter
706
- def portgroup(self) -> pulumi.Output[Optional[str]]:
724
+ def portgroup(self) -> pulumi.Output[Optional[_builtins.str]]:
707
725
  """
708
726
  Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
709
727
  """
710
728
  return pulumi.get(self, "portgroup")
711
729
 
712
- @property
730
+ @_builtins.property
713
731
  @pulumi.getter
714
- def services(self) -> pulumi.Output[Optional[Sequence[str]]]:
732
+ def services(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
715
733
  """
716
734
  Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
717
735
  """