pulumi-vsphere 4.14.0a1739946909__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 +12 -1
  2. pulumi_vsphere/_inputs.py +1172 -1172
  3. pulumi_vsphere/_utilities.py +1 -1
  4. pulumi_vsphere/compute_cluster.py +1226 -1484
  5. pulumi_vsphere/compute_cluster_host_group.py +124 -53
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
  9. pulumi_vsphere/compute_cluster_vm_group.py +58 -53
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
  11. pulumi_vsphere/config/__init__.py +2 -1
  12. pulumi_vsphere/config/__init__.pyi +2 -2
  13. pulumi_vsphere/config/vars.py +15 -15
  14. pulumi_vsphere/configuration_profile.py +286 -0
  15. pulumi_vsphere/content_library.py +64 -59
  16. pulumi_vsphere/content_library_item.py +109 -104
  17. pulumi_vsphere/custom_attribute.py +41 -36
  18. pulumi_vsphere/datacenter.py +80 -79
  19. pulumi_vsphere/datastore_cluster.py +531 -477
  20. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
  21. pulumi_vsphere/distributed_port_group.py +802 -818
  22. pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
  23. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
  24. pulumi_vsphere/dpm_host_override.py +159 -70
  25. pulumi_vsphere/drs_vm_override.py +75 -70
  26. pulumi_vsphere/entity_permissions.py +40 -39
  27. pulumi_vsphere/file.py +148 -162
  28. pulumi_vsphere/folder.py +104 -99
  29. pulumi_vsphere/get_compute_cluster.py +18 -18
  30. pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
  31. pulumi_vsphere/get_configuration_profile.py +145 -0
  32. pulumi_vsphere/get_content_library.py +10 -10
  33. pulumi_vsphere/get_content_library_item.py +22 -22
  34. pulumi_vsphere/get_custom_attribute.py +12 -12
  35. pulumi_vsphere/get_datacenter.py +12 -12
  36. pulumi_vsphere/get_datastore.py +22 -22
  37. pulumi_vsphere/get_datastore_cluster.py +19 -19
  38. pulumi_vsphere/get_datastore_stats.py +22 -26
  39. pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
  40. pulumi_vsphere/get_dynamic.py +22 -26
  41. pulumi_vsphere/get_folder.py +140 -18
  42. pulumi_vsphere/get_guest_os_customization.py +74 -21
  43. pulumi_vsphere/get_host.py +18 -18
  44. pulumi_vsphere/get_host_base_images.py +6 -6
  45. pulumi_vsphere/get_host_pci_device.py +30 -30
  46. pulumi_vsphere/get_host_thumbprint.py +22 -22
  47. pulumi_vsphere/get_host_vgpu_profile.py +17 -17
  48. pulumi_vsphere/get_license.py +26 -24
  49. pulumi_vsphere/get_network.py +80 -29
  50. pulumi_vsphere/get_ovf_vm_template.py +126 -126
  51. pulumi_vsphere/get_policy.py +10 -10
  52. pulumi_vsphere/get_resource_pool.py +77 -26
  53. pulumi_vsphere/get_role.py +26 -26
  54. pulumi_vsphere/get_tag.py +18 -18
  55. pulumi_vsphere/get_tag_category.py +16 -16
  56. pulumi_vsphere/get_vapp_container.py +16 -16
  57. pulumi_vsphere/get_virtual_machine.py +273 -273
  58. pulumi_vsphere/get_vmfs_disks.py +24 -24
  59. pulumi_vsphere/guest_os_customization.py +75 -74
  60. pulumi_vsphere/ha_vm_override.py +295 -374
  61. pulumi_vsphere/host.py +304 -249
  62. pulumi_vsphere/host_port_group.py +321 -341
  63. pulumi_vsphere/host_virtual_switch.py +373 -389
  64. pulumi_vsphere/license.py +125 -84
  65. pulumi_vsphere/nas_datastore.py +324 -261
  66. pulumi_vsphere/offline_software_depot.py +26 -21
  67. pulumi_vsphere/outputs.py +1003 -970
  68. pulumi_vsphere/provider.py +165 -146
  69. pulumi_vsphere/pulumi-plugin.json +1 -1
  70. pulumi_vsphere/resource_pool.py +691 -364
  71. pulumi_vsphere/role.py +46 -45
  72. pulumi_vsphere/storage_drs_vm_override.py +92 -87
  73. pulumi_vsphere/supervisor.py +210 -209
  74. pulumi_vsphere/tag.py +58 -53
  75. pulumi_vsphere/tag_category.py +75 -70
  76. pulumi_vsphere/vapp_container.py +262 -257
  77. pulumi_vsphere/vapp_entity.py +177 -172
  78. pulumi_vsphere/virtual_disk.py +130 -125
  79. pulumi_vsphere/virtual_machine.py +1339 -1443
  80. pulumi_vsphere/virtual_machine_class.py +109 -108
  81. pulumi_vsphere/virtual_machine_snapshot.py +122 -121
  82. pulumi_vsphere/vm_storage_policy.py +40 -39
  83. pulumi_vsphere/vmfs_datastore.py +189 -184
  84. pulumi_vsphere/vnic.py +145 -144
  85. {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
  86. pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
  87. {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
  88. pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
  89. {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
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
7
  import sys
8
8
  import pulumi
@@ -49,54 +49,56 @@ class GetLicenseResult:
49
49
  raise TypeError("Expected argument 'used' to be a int")
50
50
  pulumi.set(__self__, "used", used)
51
51
 
52
- @property
52
+ @_builtins.property
53
53
  @pulumi.getter(name="editionKey")
54
- def edition_key(self) -> str:
54
+ def edition_key(self) -> _builtins.str:
55
55
  """
56
56
  The product edition of the license key.
57
57
  """
58
58
  return pulumi.get(self, "edition_key")
59
59
 
60
- @property
60
+ @_builtins.property
61
61
  @pulumi.getter
62
- def id(self) -> str:
62
+ def id(self) -> _builtins.str:
63
+ """
64
+ The license key ID.
65
+ """
63
66
  return pulumi.get(self, "id")
64
67
 
65
- @property
68
+ @_builtins.property
66
69
  @pulumi.getter
67
- def labels(self) -> Mapping[str, str]:
70
+ def labels(self) -> Mapping[str, _builtins.str]:
68
71
  """
69
- A map of key/value pairs attached as labels (tags) to the license
70
- key.
72
+ A map of labels applied to the license key.
71
73
  """
72
74
  return pulumi.get(self, "labels")
73
75
 
74
- @property
76
+ @_builtins.property
75
77
  @pulumi.getter(name="licenseKey")
76
- def license_key(self) -> str:
78
+ def license_key(self) -> _builtins.str:
77
79
  return pulumi.get(self, "license_key")
78
80
 
79
- @property
81
+ @_builtins.property
80
82
  @pulumi.getter
81
- def name(self) -> str:
83
+ def name(self) -> _builtins.str:
82
84
  """
83
85
  The display name for the license.
84
86
  """
85
87
  return pulumi.get(self, "name")
86
88
 
87
- @property
89
+ @_builtins.property
88
90
  @pulumi.getter
89
- def total(self) -> int:
91
+ def total(self) -> _builtins.int:
90
92
  """
91
- Total number of units (example: CPUs) contained in the license.
93
+ The total number of units contained in the license key.
92
94
  """
93
95
  return pulumi.get(self, "total")
94
96
 
95
- @property
97
+ @_builtins.property
96
98
  @pulumi.getter
97
- def used(self) -> int:
99
+ def used(self) -> _builtins.int:
98
100
  """
99
- The number of units (example: CPUs) assigned to this license.
101
+ The number of units assigned to this license key.
100
102
  """
101
103
  return pulumi.get(self, "used")
102
104
 
@@ -116,7 +118,7 @@ class AwaitableGetLicenseResult(GetLicenseResult):
116
118
  used=self.used)
117
119
 
118
120
 
119
- def get_license(license_key: Optional[str] = None,
121
+ def get_license(license_key: Optional[_builtins.str] = None,
120
122
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLicenseResult:
121
123
  """
122
124
  The `License` data source can be used to get the general attributes of
@@ -132,7 +134,7 @@ def get_license(license_key: Optional[str] = None,
132
134
  ```
133
135
 
134
136
 
135
- :param str license_key: The license key.
137
+ :param _builtins.str license_key: The license key value.
136
138
  """
137
139
  __args__ = dict()
138
140
  __args__['licenseKey'] = license_key
@@ -147,7 +149,7 @@ def get_license(license_key: Optional[str] = None,
147
149
  name=pulumi.get(__ret__, 'name'),
148
150
  total=pulumi.get(__ret__, 'total'),
149
151
  used=pulumi.get(__ret__, 'used'))
150
- def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
152
+ def get_license_output(license_key: Optional[pulumi.Input[_builtins.str]] = None,
151
153
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetLicenseResult]:
152
154
  """
153
155
  The `License` data source can be used to get the general attributes of
@@ -163,7 +165,7 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None,
163
165
  ```
164
166
 
165
167
 
166
- :param str license_key: The license key.
168
+ :param _builtins.str license_key: The license key value.
167
169
  """
168
170
  __args__ = dict()
169
171
  __args__['licenseKey'] = license_key
@@ -1,8 +1,8 @@
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
7
  import sys
8
8
  import pulumi
@@ -28,7 +28,7 @@ class GetNetworkResult:
28
28
  """
29
29
  A collection of values returned by getNetwork.
30
30
  """
31
- def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, type=None):
31
+ def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, retry_interval=None, retry_timeout=None, type=None, vpc_id=None):
32
32
  if datacenter_id and not isinstance(datacenter_id, str):
33
33
  raise TypeError("Expected argument 'datacenter_id' to be a str")
34
34
  pulumi.set(__self__, "datacenter_id", datacenter_id)
@@ -44,41 +44,60 @@ class GetNetworkResult:
44
44
  if name and not isinstance(name, str):
45
45
  raise TypeError("Expected argument 'name' to be a str")
46
46
  pulumi.set(__self__, "name", name)
47
+ if retry_interval and not isinstance(retry_interval, int):
48
+ raise TypeError("Expected argument 'retry_interval' to be a int")
49
+ pulumi.set(__self__, "retry_interval", retry_interval)
50
+ if retry_timeout and not isinstance(retry_timeout, int):
51
+ raise TypeError("Expected argument 'retry_timeout' to be a int")
52
+ pulumi.set(__self__, "retry_timeout", retry_timeout)
47
53
  if type and not isinstance(type, str):
48
54
  raise TypeError("Expected argument 'type' to be a str")
49
55
  pulumi.set(__self__, "type", type)
56
+ if vpc_id and not isinstance(vpc_id, str):
57
+ raise TypeError("Expected argument 'vpc_id' to be a str")
58
+ pulumi.set(__self__, "vpc_id", vpc_id)
50
59
 
51
- @property
60
+ @_builtins.property
52
61
  @pulumi.getter(name="datacenterId")
53
- def datacenter_id(self) -> Optional[str]:
62
+ def datacenter_id(self) -> Optional[_builtins.str]:
54
63
  return pulumi.get(self, "datacenter_id")
55
64
 
56
- @property
65
+ @_builtins.property
57
66
  @pulumi.getter(name="distributedVirtualSwitchUuid")
58
- def distributed_virtual_switch_uuid(self) -> Optional[str]:
67
+ def distributed_virtual_switch_uuid(self) -> Optional[_builtins.str]:
59
68
  return pulumi.get(self, "distributed_virtual_switch_uuid")
60
69
 
61
- @property
70
+ @_builtins.property
62
71
  @pulumi.getter
63
72
  def filters(self) -> Optional[Sequence['outputs.GetNetworkFilterResult']]:
64
73
  return pulumi.get(self, "filters")
65
74
 
66
- @property
75
+ @_builtins.property
67
76
  @pulumi.getter
68
- def id(self) -> str:
77
+ def id(self) -> _builtins.str:
69
78
  """
70
79
  The provider-assigned unique ID for this managed resource.
71
80
  """
72
81
  return pulumi.get(self, "id")
73
82
 
74
- @property
83
+ @_builtins.property
75
84
  @pulumi.getter
76
- def name(self) -> str:
85
+ def name(self) -> _builtins.str:
77
86
  return pulumi.get(self, "name")
78
87
 
79
- @property
88
+ @_builtins.property
89
+ @pulumi.getter(name="retryInterval")
90
+ def retry_interval(self) -> Optional[_builtins.int]:
91
+ return pulumi.get(self, "retry_interval")
92
+
93
+ @_builtins.property
94
+ @pulumi.getter(name="retryTimeout")
95
+ def retry_timeout(self) -> Optional[_builtins.int]:
96
+ return pulumi.get(self, "retry_timeout")
97
+
98
+ @_builtins.property
80
99
  @pulumi.getter
81
- def type(self) -> str:
100
+ def type(self) -> _builtins.str:
82
101
  """
83
102
  The managed object type for the discovered network. This will be one
84
103
  of `DistributedVirtualPortgroup` for distributed port groups, `Network` for
@@ -87,6 +106,11 @@ class GetNetworkResult:
87
106
  """
88
107
  return pulumi.get(self, "type")
89
108
 
109
+ @_builtins.property
110
+ @pulumi.getter(name="vpcId")
111
+ def vpc_id(self) -> Optional[_builtins.str]:
112
+ return pulumi.get(self, "vpc_id")
113
+
90
114
 
91
115
  class AwaitableGetNetworkResult(GetNetworkResult):
92
116
  # pylint: disable=using-constant-test
@@ -99,13 +123,19 @@ class AwaitableGetNetworkResult(GetNetworkResult):
99
123
  filters=self.filters,
100
124
  id=self.id,
101
125
  name=self.name,
102
- type=self.type)
126
+ retry_interval=self.retry_interval,
127
+ retry_timeout=self.retry_timeout,
128
+ type=self.type,
129
+ vpc_id=self.vpc_id)
103
130
 
104
131
 
105
- def get_network(datacenter_id: Optional[str] = None,
106
- distributed_virtual_switch_uuid: Optional[str] = None,
132
+ def get_network(datacenter_id: Optional[_builtins.str] = None,
133
+ distributed_virtual_switch_uuid: Optional[_builtins.str] = None,
107
134
  filters: Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]] = None,
108
- name: Optional[str] = None,
135
+ name: Optional[_builtins.str] = None,
136
+ retry_interval: Optional[_builtins.int] = None,
137
+ retry_timeout: Optional[_builtins.int] = None,
138
+ vpc_id: Optional[_builtins.str] = None,
109
139
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
110
140
  """
111
141
  The `get_network` data source can be used to discover the ID of a network in
@@ -140,22 +170,28 @@ def get_network(datacenter_id: Optional[str] = None,
140
170
  ```
141
171
 
142
172
 
143
- :param str datacenter_id: The managed object reference ID
173
+ :param _builtins.str datacenter_id: The managed object reference ID
144
174
  of the datacenter the network is located in. This can be omitted if the
145
175
  search path used in `name` is an absolute path. For default datacenters,
146
176
  use the `id` attribute from an empty `Datacenter` data source.
147
- :param str distributed_virtual_switch_uuid: For distributed port group type
177
+ :param _builtins.str distributed_virtual_switch_uuid: For distributed port group type
148
178
  network objects, the ID of the distributed virtual switch for which the port
149
179
  group belongs. It is useful to differentiate port groups with same name using
150
180
  the distributed virtual switch ID.
151
181
  :param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
152
- :param str name: The name of the network. This can be a name or path.
182
+ :param _builtins.str name: The name of the network. This can be a name or path.
183
+ :param _builtins.int retry_interval: The interval in milliseconds to retry the read operation if `retry_timeout` is set. Default: 500.
184
+ :param _builtins.int retry_timeout: The timeout duration in seconds for the data source to retry read operations.
185
+ :param _builtins.str vpc_id: Select a VPC scope for retrieval of VPC subnets.
153
186
  """
154
187
  __args__ = dict()
155
188
  __args__['datacenterId'] = datacenter_id
156
189
  __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
157
190
  __args__['filters'] = filters
158
191
  __args__['name'] = name
192
+ __args__['retryInterval'] = retry_interval
193
+ __args__['retryTimeout'] = retry_timeout
194
+ __args__['vpcId'] = vpc_id
159
195
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
160
196
  __ret__ = pulumi.runtime.invoke('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult).value
161
197
 
@@ -165,11 +201,17 @@ def get_network(datacenter_id: Optional[str] = None,
165
201
  filters=pulumi.get(__ret__, 'filters'),
166
202
  id=pulumi.get(__ret__, 'id'),
167
203
  name=pulumi.get(__ret__, 'name'),
168
- type=pulumi.get(__ret__, 'type'))
169
- def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
170
- distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[str]]] = None,
204
+ retry_interval=pulumi.get(__ret__, 'retry_interval'),
205
+ retry_timeout=pulumi.get(__ret__, 'retry_timeout'),
206
+ type=pulumi.get(__ret__, 'type'),
207
+ vpc_id=pulumi.get(__ret__, 'vpc_id'))
208
+ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
209
+ distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
171
210
  filters: Optional[pulumi.Input[Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]]]] = None,
172
- name: Optional[pulumi.Input[str]] = None,
211
+ name: Optional[pulumi.Input[_builtins.str]] = None,
212
+ retry_interval: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
213
+ retry_timeout: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
214
+ vpc_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
173
215
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNetworkResult]:
174
216
  """
175
217
  The `get_network` data source can be used to discover the ID of a network in
@@ -204,22 +246,28 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
204
246
  ```
205
247
 
206
248
 
207
- :param str datacenter_id: The managed object reference ID
249
+ :param _builtins.str datacenter_id: The managed object reference ID
208
250
  of the datacenter the network is located in. This can be omitted if the
209
251
  search path used in `name` is an absolute path. For default datacenters,
210
252
  use the `id` attribute from an empty `Datacenter` data source.
211
- :param str distributed_virtual_switch_uuid: For distributed port group type
253
+ :param _builtins.str distributed_virtual_switch_uuid: For distributed port group type
212
254
  network objects, the ID of the distributed virtual switch for which the port
213
255
  group belongs. It is useful to differentiate port groups with same name using
214
256
  the distributed virtual switch ID.
215
257
  :param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
216
- :param str name: The name of the network. This can be a name or path.
258
+ :param _builtins.str name: The name of the network. This can be a name or path.
259
+ :param _builtins.int retry_interval: The interval in milliseconds to retry the read operation if `retry_timeout` is set. Default: 500.
260
+ :param _builtins.int retry_timeout: The timeout duration in seconds for the data source to retry read operations.
261
+ :param _builtins.str vpc_id: Select a VPC scope for retrieval of VPC subnets.
217
262
  """
218
263
  __args__ = dict()
219
264
  __args__['datacenterId'] = datacenter_id
220
265
  __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
221
266
  __args__['filters'] = filters
222
267
  __args__['name'] = name
268
+ __args__['retryInterval'] = retry_interval
269
+ __args__['retryTimeout'] = retry_timeout
270
+ __args__['vpcId'] = vpc_id
223
271
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
224
272
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
225
273
  return __ret__.apply(lambda __response__: GetNetworkResult(
@@ -228,4 +276,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
228
276
  filters=pulumi.get(__response__, 'filters'),
229
277
  id=pulumi.get(__response__, 'id'),
230
278
  name=pulumi.get(__response__, 'name'),
231
- type=pulumi.get(__response__, 'type')))
279
+ retry_interval=pulumi.get(__response__, 'retry_interval'),
280
+ retry_timeout=pulumi.get(__response__, 'retry_timeout'),
281
+ type=pulumi.get(__response__, 'type'),
282
+ vpc_id=pulumi.get(__response__, 'vpc_id')))