pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.13.0a1736836157__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 (85) hide show
  1. pulumi_vsphere/__init__.py +28 -0
  2. pulumi_vsphere/_inputs.py +1816 -277
  3. pulumi_vsphere/_utilities.py +41 -5
  4. pulumi_vsphere/compute_cluster.py +937 -1488
  5. pulumi_vsphere/compute_cluster_host_group.py +67 -2
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
  9. pulumi_vsphere/compute_cluster_vm_group.py +198 -2
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
  11. pulumi_vsphere/config/__init__.pyi +5 -0
  12. pulumi_vsphere/config/vars.py +5 -0
  13. pulumi_vsphere/content_library.py +113 -12
  14. pulumi_vsphere/content_library_item.py +143 -2
  15. pulumi_vsphere/custom_attribute.py +77 -2
  16. pulumi_vsphere/datacenter.py +48 -40
  17. pulumi_vsphere/datastore_cluster.py +217 -366
  18. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
  19. pulumi_vsphere/distributed_port_group.py +416 -189
  20. pulumi_vsphere/distributed_virtual_switch.py +571 -830
  21. pulumi_vsphere/dpm_host_override.py +63 -2
  22. pulumi_vsphere/drs_vm_override.py +67 -2
  23. pulumi_vsphere/entity_permissions.py +64 -38
  24. pulumi_vsphere/file.py +21 -24
  25. pulumi_vsphere/folder.py +148 -30
  26. pulumi_vsphere/get_compute_cluster.py +16 -9
  27. pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
  28. pulumi_vsphere/get_content_library.py +23 -15
  29. pulumi_vsphere/get_content_library_item.py +29 -13
  30. pulumi_vsphere/get_custom_attribute.py +14 -9
  31. pulumi_vsphere/get_datacenter.py +30 -12
  32. pulumi_vsphere/get_datastore.py +29 -21
  33. pulumi_vsphere/get_datastore_cluster.py +31 -10
  34. pulumi_vsphere/get_datastore_stats.py +63 -57
  35. pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
  36. pulumi_vsphere/get_dynamic.py +35 -25
  37. pulumi_vsphere/get_folder.py +23 -11
  38. pulumi_vsphere/get_guest_os_customization.py +26 -52
  39. pulumi_vsphere/get_host.py +16 -9
  40. pulumi_vsphere/get_host_base_images.py +104 -0
  41. pulumi_vsphere/get_host_pci_device.py +28 -19
  42. pulumi_vsphere/get_host_thumbprint.py +41 -25
  43. pulumi_vsphere/get_host_vgpu_profile.py +20 -15
  44. pulumi_vsphere/get_license.py +20 -10
  45. pulumi_vsphere/get_network.py +80 -24
  46. pulumi_vsphere/get_ovf_vm_template.py +56 -5
  47. pulumi_vsphere/get_policy.py +13 -9
  48. pulumi_vsphere/get_resource_pool.py +29 -23
  49. pulumi_vsphere/get_role.py +23 -13
  50. pulumi_vsphere/get_tag.py +16 -9
  51. pulumi_vsphere/get_tag_category.py +16 -9
  52. pulumi_vsphere/get_vapp_container.py +15 -9
  53. pulumi_vsphere/get_virtual_machine.py +205 -48
  54. pulumi_vsphere/get_vmfs_disks.py +18 -9
  55. pulumi_vsphere/guest_os_customization.py +60 -5
  56. pulumi_vsphere/ha_vm_override.py +352 -380
  57. pulumi_vsphere/host.py +244 -64
  58. pulumi_vsphere/host_port_group.py +27 -24
  59. pulumi_vsphere/host_virtual_switch.py +209 -289
  60. pulumi_vsphere/license.py +5 -32
  61. pulumi_vsphere/nas_datastore.py +74 -9
  62. pulumi_vsphere/offline_software_depot.py +185 -0
  63. pulumi_vsphere/outputs.py +717 -270
  64. pulumi_vsphere/provider.py +7 -6
  65. pulumi_vsphere/pulumi-plugin.json +2 -1
  66. pulumi_vsphere/resource_pool.py +168 -411
  67. pulumi_vsphere/role.py +33 -2
  68. pulumi_vsphere/storage_drs_vm_override.py +133 -2
  69. pulumi_vsphere/supervisor.py +967 -0
  70. pulumi_vsphere/tag.py +159 -2
  71. pulumi_vsphere/tag_category.py +83 -2
  72. pulumi_vsphere/vapp_container.py +163 -2
  73. pulumi_vsphere/vapp_entity.py +147 -2
  74. pulumi_vsphere/virtual_disk.py +123 -36
  75. pulumi_vsphere/virtual_machine.py +698 -829
  76. pulumi_vsphere/virtual_machine_class.py +447 -0
  77. pulumi_vsphere/virtual_machine_snapshot.py +13 -12
  78. pulumi_vsphere/vm_storage_policy.py +120 -127
  79. pulumi_vsphere/vmfs_datastore.py +271 -2
  80. pulumi_vsphere/vnic.py +104 -105
  81. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/METADATA +7 -6
  82. pulumi_vsphere-4.13.0a1736836157.dist-info/RECORD +86 -0
  83. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/WHEEL +1 -1
  84. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  85. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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
 
12
17
  __all__ = ['DpmHostOverrideArgs', 'DpmHostOverride']
@@ -200,7 +205,35 @@ class DpmHostOverride(pulumi.CustomResource):
200
205
  host_system_id: Optional[pulumi.Input[str]] = None,
201
206
  __props__=None):
202
207
  """
203
- Create a DpmHostOverride resource with the given unique name, props, and options.
208
+ The `DpmHostOverride` resource can be used to add a DPM override to a
209
+ cluster for a particular host. This allows you to control the power management
210
+ settings for individual hosts in the cluster while leaving any unspecified ones
211
+ at the default power management settings.
212
+
213
+ For more information on DPM within vSphere clusters, see [this
214
+ page][ref-vsphere-cluster-dpm].
215
+
216
+ [ref-vsphere-cluster-dpm]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-5E5E349A-4644-4C9C-B434-1C0243EBDC80.html
217
+
218
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
219
+ connections.
220
+
221
+ ## Import
222
+
223
+ An existing override can be imported into this resource by
224
+
225
+ supplying both the path to the cluster, and the path to the host, to `terraform
226
+
227
+ import`. If no override exists, an error will be given. An example is below:
228
+
229
+ ```sh
230
+ $ pulumi import vsphere:index/dpmHostOverride:DpmHostOverride dpm_host_override \\
231
+ ```
232
+
233
+ '{"compute_cluster_path": "/dc1/host/cluster1", \\
234
+
235
+ "host_path": "/dc1/host/esxi1"}'
236
+
204
237
  :param str resource_name: The name of the resource.
205
238
  :param pulumi.ResourceOptions opts: Options for the resource.
206
239
  :param pulumi.Input[str] compute_cluster_id: The managed object reference
@@ -224,7 +257,35 @@ class DpmHostOverride(pulumi.CustomResource):
224
257
  args: DpmHostOverrideArgs,
225
258
  opts: Optional[pulumi.ResourceOptions] = None):
226
259
  """
227
- Create a DpmHostOverride resource with the given unique name, props, and options.
260
+ The `DpmHostOverride` resource can be used to add a DPM override to a
261
+ cluster for a particular host. This allows you to control the power management
262
+ settings for individual hosts in the cluster while leaving any unspecified ones
263
+ at the default power management settings.
264
+
265
+ For more information on DPM within vSphere clusters, see [this
266
+ page][ref-vsphere-cluster-dpm].
267
+
268
+ [ref-vsphere-cluster-dpm]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-5E5E349A-4644-4C9C-B434-1C0243EBDC80.html
269
+
270
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
271
+ connections.
272
+
273
+ ## Import
274
+
275
+ An existing override can be imported into this resource by
276
+
277
+ supplying both the path to the cluster, and the path to the host, to `terraform
278
+
279
+ import`. If no override exists, an error will be given. An example is below:
280
+
281
+ ```sh
282
+ $ pulumi import vsphere:index/dpmHostOverride:DpmHostOverride dpm_host_override \\
283
+ ```
284
+
285
+ '{"compute_cluster_path": "/dc1/host/cluster1", \\
286
+
287
+ "host_path": "/dc1/host/esxi1"}'
288
+
228
289
  :param str resource_name: The name of the resource.
229
290
  :param DpmHostOverrideArgs args: The arguments to use to populate this resource's properties.
230
291
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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
 
12
17
  __all__ = ['DrsVmOverrideArgs', 'DrsVmOverride']
@@ -204,7 +209,37 @@ class DrsVmOverride(pulumi.CustomResource):
204
209
  virtual_machine_id: Optional[pulumi.Input[str]] = None,
205
210
  __props__=None):
206
211
  """
207
- Create a DrsVmOverride resource with the given unique name, props, and options.
212
+ The `DrsVmOverride` resource can be used to add a DRS override to a
213
+ cluster for a specific virtual machine. With this resource, one can enable or
214
+ disable DRS and control the automation level for a single virtual machine
215
+ without affecting the rest of the cluster.
216
+
217
+ For more information on vSphere clusters and DRS, see [this
218
+ page][ref-vsphere-drs-clusters].
219
+
220
+ [ref-vsphere-drs-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-8ACF3502-5314-469F-8CC9-4A9BD5925BC2.html
221
+
222
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
223
+ connections.
224
+
225
+ ## Import
226
+
227
+ An existing override can be imported into this resource by
228
+
229
+ supplying both the path to the cluster, and the path to the virtual machine, to
230
+
231
+ `pulumi import`. If no override exists, an error will be given. An example
232
+
233
+ is below:
234
+
235
+ ```sh
236
+ $ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
237
+ ```
238
+
239
+ '{"compute_cluster_path": "/dc1/host/cluster1", \\
240
+
241
+ "virtual_machine_path": "/dc1/vm/srv1"}'
242
+
208
243
  :param str resource_name: The name of the resource.
209
244
  :param pulumi.ResourceOptions opts: Options for the resource.
210
245
  :param pulumi.Input[str] compute_cluster_id: The managed object reference
@@ -229,7 +264,37 @@ class DrsVmOverride(pulumi.CustomResource):
229
264
  args: DrsVmOverrideArgs,
230
265
  opts: Optional[pulumi.ResourceOptions] = None):
231
266
  """
232
- Create a DrsVmOverride resource with the given unique name, props, and options.
267
+ The `DrsVmOverride` resource can be used to add a DRS override to a
268
+ cluster for a specific virtual machine. With this resource, one can enable or
269
+ disable DRS and control the automation level for a single virtual machine
270
+ without affecting the rest of the cluster.
271
+
272
+ For more information on vSphere clusters and DRS, see [this
273
+ page][ref-vsphere-drs-clusters].
274
+
275
+ [ref-vsphere-drs-clusters]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-8ACF3502-5314-469F-8CC9-4A9BD5925BC2.html
276
+
277
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
278
+ connections.
279
+
280
+ ## Import
281
+
282
+ An existing override can be imported into this resource by
283
+
284
+ supplying both the path to the cluster, and the path to the virtual machine, to
285
+
286
+ `pulumi import`. If no override exists, an error will be given. An example
287
+
288
+ is below:
289
+
290
+ ```sh
291
+ $ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
292
+ ```
293
+
294
+ '{"compute_cluster_path": "/dc1/host/cluster1", \\
295
+
296
+ "virtual_machine_path": "/dc1/vm/srv1"}'
297
+
233
298
  :param str resource_name: The name of the resource.
234
299
  :param DrsVmOverrideArgs args: The arguments to use to populate this resource's properties.
235
300
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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 *
@@ -21,11 +26,14 @@ class EntityPermissionsArgs:
21
26
  permissions: pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]):
22
27
  """
23
28
  The set of arguments for constructing a EntityPermissions resource.
24
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
25
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
26
- [here](https://developer.vmware.com/apis/968/vsphere).
27
- :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep the permissions sorted
28
- alphabetically on `user_or_group` for a better user experience.
29
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
30
+ which permissions are to be created.
31
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
32
+ managed object type section
33
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
34
+ :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
35
+ the permissions sorted alphabetically on `user_or_group` for a better user
36
+ experience.
29
37
  """
30
38
  pulumi.set(__self__, "entity_id", entity_id)
31
39
  pulumi.set(__self__, "entity_type", entity_type)
@@ -35,7 +43,8 @@ class EntityPermissionsArgs:
35
43
  @pulumi.getter(name="entityId")
36
44
  def entity_id(self) -> pulumi.Input[str]:
37
45
  """
38
- The managed object id (uuid for some entities) on which permissions are to be created.
46
+ The managed object id (uuid for some entities) on
47
+ which permissions are to be created.
39
48
  """
40
49
  return pulumi.get(self, "entity_id")
41
50
 
@@ -47,8 +56,9 @@ class EntityPermissionsArgs:
47
56
  @pulumi.getter(name="entityType")
48
57
  def entity_type(self) -> pulumi.Input[str]:
49
58
  """
50
- The managed object type, types can be found in the managed object type section
51
- [here](https://developer.vmware.com/apis/968/vsphere).
59
+ The managed object type, types can be found in the
60
+ managed object type section
61
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
52
62
  """
53
63
  return pulumi.get(self, "entity_type")
54
64
 
@@ -60,8 +70,9 @@ class EntityPermissionsArgs:
60
70
  @pulumi.getter
61
71
  def permissions(self) -> pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]:
62
72
  """
63
- The permissions to be given on this entity. Keep the permissions sorted
64
- alphabetically on `user_or_group` for a better user experience.
73
+ The permissions to be given on this entity. Keep
74
+ the permissions sorted alphabetically on `user_or_group` for a better user
75
+ experience.
65
76
  """
66
77
  return pulumi.get(self, "permissions")
67
78
 
@@ -78,11 +89,14 @@ class _EntityPermissionsState:
78
89
  permissions: Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]] = None):
79
90
  """
80
91
  Input properties used for looking up and filtering EntityPermissions resources.
81
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
82
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
83
- [here](https://developer.vmware.com/apis/968/vsphere).
84
- :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep the permissions sorted
85
- alphabetically on `user_or_group` for a better user experience.
92
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
93
+ which permissions are to be created.
94
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
95
+ managed object type section
96
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
97
+ :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
98
+ the permissions sorted alphabetically on `user_or_group` for a better user
99
+ experience.
86
100
  """
87
101
  if entity_id is not None:
88
102
  pulumi.set(__self__, "entity_id", entity_id)
@@ -95,7 +109,8 @@ class _EntityPermissionsState:
95
109
  @pulumi.getter(name="entityId")
96
110
  def entity_id(self) -> Optional[pulumi.Input[str]]:
97
111
  """
98
- The managed object id (uuid for some entities) on which permissions are to be created.
112
+ The managed object id (uuid for some entities) on
113
+ which permissions are to be created.
99
114
  """
100
115
  return pulumi.get(self, "entity_id")
101
116
 
@@ -107,8 +122,9 @@ class _EntityPermissionsState:
107
122
  @pulumi.getter(name="entityType")
108
123
  def entity_type(self) -> Optional[pulumi.Input[str]]:
109
124
  """
110
- The managed object type, types can be found in the managed object type section
111
- [here](https://developer.vmware.com/apis/968/vsphere).
125
+ The managed object type, types can be found in the
126
+ managed object type section
127
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
112
128
  """
113
129
  return pulumi.get(self, "entity_type")
114
130
 
@@ -120,8 +136,9 @@ class _EntityPermissionsState:
120
136
  @pulumi.getter
121
137
  def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]]:
122
138
  """
123
- The permissions to be given on this entity. Keep the permissions sorted
124
- alphabetically on `user_or_group` for a better user experience.
139
+ The permissions to be given on this entity. Keep
140
+ the permissions sorted alphabetically on `user_or_group` for a better user
141
+ experience.
125
142
  """
126
143
  return pulumi.get(self, "permissions")
127
144
 
@@ -137,17 +154,20 @@ class EntityPermissions(pulumi.CustomResource):
137
154
  opts: Optional[pulumi.ResourceOptions] = None,
138
155
  entity_id: Optional[pulumi.Input[str]] = None,
139
156
  entity_type: Optional[pulumi.Input[str]] = None,
140
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None,
157
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
141
158
  __props__=None):
142
159
  """
143
160
  Create a EntityPermissions resource with the given unique name, props, and options.
144
161
  :param str resource_name: The name of the resource.
145
162
  :param pulumi.ResourceOptions opts: Options for the resource.
146
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
147
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
148
- [here](https://developer.vmware.com/apis/968/vsphere).
149
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep the permissions sorted
150
- alphabetically on `user_or_group` for a better user experience.
163
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
164
+ which permissions are to be created.
165
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
166
+ managed object type section
167
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
168
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] permissions: The permissions to be given on this entity. Keep
169
+ the permissions sorted alphabetically on `user_or_group` for a better user
170
+ experience.
151
171
  """
152
172
  ...
153
173
  @overload
@@ -174,7 +194,7 @@ class EntityPermissions(pulumi.CustomResource):
174
194
  opts: Optional[pulumi.ResourceOptions] = None,
175
195
  entity_id: Optional[pulumi.Input[str]] = None,
176
196
  entity_type: Optional[pulumi.Input[str]] = None,
177
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None,
197
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
178
198
  __props__=None):
179
199
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
180
200
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -205,7 +225,7 @@ class EntityPermissions(pulumi.CustomResource):
205
225
  opts: Optional[pulumi.ResourceOptions] = None,
206
226
  entity_id: Optional[pulumi.Input[str]] = None,
207
227
  entity_type: Optional[pulumi.Input[str]] = None,
208
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None) -> 'EntityPermissions':
228
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None) -> 'EntityPermissions':
209
229
  """
210
230
  Get an existing EntityPermissions resource's state with the given name, id, and optional extra
211
231
  properties used to qualify the lookup.
@@ -213,11 +233,14 @@ class EntityPermissions(pulumi.CustomResource):
213
233
  :param str resource_name: The unique name of the resulting resource.
214
234
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
215
235
  :param pulumi.ResourceOptions opts: Options for the resource.
216
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
217
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
218
- [here](https://developer.vmware.com/apis/968/vsphere).
219
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep the permissions sorted
220
- alphabetically on `user_or_group` for a better user experience.
236
+ :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
237
+ which permissions are to be created.
238
+ :param pulumi.Input[str] entity_type: The managed object type, types can be found in the
239
+ managed object type section
240
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
241
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] permissions: The permissions to be given on this entity. Keep
242
+ the permissions sorted alphabetically on `user_or_group` for a better user
243
+ experience.
221
244
  """
222
245
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
223
246
 
@@ -232,7 +255,8 @@ class EntityPermissions(pulumi.CustomResource):
232
255
  @pulumi.getter(name="entityId")
233
256
  def entity_id(self) -> pulumi.Output[str]:
234
257
  """
235
- The managed object id (uuid for some entities) on which permissions are to be created.
258
+ The managed object id (uuid for some entities) on
259
+ which permissions are to be created.
236
260
  """
237
261
  return pulumi.get(self, "entity_id")
238
262
 
@@ -240,8 +264,9 @@ class EntityPermissions(pulumi.CustomResource):
240
264
  @pulumi.getter(name="entityType")
241
265
  def entity_type(self) -> pulumi.Output[str]:
242
266
  """
243
- The managed object type, types can be found in the managed object type section
244
- [here](https://developer.vmware.com/apis/968/vsphere).
267
+ The managed object type, types can be found in the
268
+ managed object type section
269
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
245
270
  """
246
271
  return pulumi.get(self, "entity_type")
247
272
 
@@ -249,8 +274,9 @@ class EntityPermissions(pulumi.CustomResource):
249
274
  @pulumi.getter
250
275
  def permissions(self) -> pulumi.Output[Sequence['outputs.EntityPermissionsPermission']]:
251
276
  """
252
- The permissions to be given on this entity. Keep the permissions sorted
253
- alphabetically on `user_or_group` for a better user experience.
277
+ The permissions to be given on this entity. Keep
278
+ the permissions sorted alphabetically on `user_or_group` for a better user
279
+ experience.
254
280
  """
255
281
  return pulumi.get(self, "permissions")
256
282
 
pulumi_vsphere/file.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
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
 
12
17
  __all__ = ['FileArgs', 'File']
@@ -298,37 +303,33 @@ class File(pulumi.CustomResource):
298
303
 
299
304
  ### Uploading a File
300
305
 
301
- <!--Start PulumiCodeChooser -->
302
306
  ```python
303
307
  import pulumi
304
308
  import pulumi_vsphere as vsphere
305
309
 
306
- ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
307
- create_directories=True,
310
+ ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
308
311
  datacenter="dc-01",
309
312
  datastore="datastore-01",
313
+ source_file="/my/src/path/custom_ubuntu.vmdk",
310
314
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
311
- source_file="/my/src/path/custom_ubuntu.vmdk")
315
+ create_directories=True)
312
316
  ```
313
- <!--End PulumiCodeChooser -->
314
317
 
315
318
  ### Copying a File
316
319
 
317
- <!--Start PulumiCodeChooser -->
318
320
  ```python
319
321
  import pulumi
320
322
  import pulumi_vsphere as vsphere
321
323
 
322
- ubuntu_copy = vsphere.File("ubuntuCopy",
323
- create_directories=True,
324
+ ubuntu_copy = vsphere.File("ubuntu_copy",
325
+ source_datacenter="dc-01",
324
326
  datacenter="dc-01",
327
+ source_datastore="datastore-01",
325
328
  datastore="datastore-01",
329
+ source_file="/my/src/path/custom_ubuntu.vmdk",
326
330
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
327
- source_datacenter="dc-01",
328
- source_datastore="datastore-01",
329
- source_file="/my/src/path/custom_ubuntu.vmdk")
331
+ create_directories=True)
330
332
  ```
331
- <!--End PulumiCodeChooser -->
332
333
 
333
334
  :param str resource_name: The name of the resource.
334
335
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -360,37 +361,33 @@ class File(pulumi.CustomResource):
360
361
 
361
362
  ### Uploading a File
362
363
 
363
- <!--Start PulumiCodeChooser -->
364
364
  ```python
365
365
  import pulumi
366
366
  import pulumi_vsphere as vsphere
367
367
 
368
- ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
369
- create_directories=True,
368
+ ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
370
369
  datacenter="dc-01",
371
370
  datastore="datastore-01",
371
+ source_file="/my/src/path/custom_ubuntu.vmdk",
372
372
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
373
- source_file="/my/src/path/custom_ubuntu.vmdk")
373
+ create_directories=True)
374
374
  ```
375
- <!--End PulumiCodeChooser -->
376
375
 
377
376
  ### Copying a File
378
377
 
379
- <!--Start PulumiCodeChooser -->
380
378
  ```python
381
379
  import pulumi
382
380
  import pulumi_vsphere as vsphere
383
381
 
384
- ubuntu_copy = vsphere.File("ubuntuCopy",
385
- create_directories=True,
382
+ ubuntu_copy = vsphere.File("ubuntu_copy",
383
+ source_datacenter="dc-01",
386
384
  datacenter="dc-01",
385
+ source_datastore="datastore-01",
387
386
  datastore="datastore-01",
387
+ source_file="/my/src/path/custom_ubuntu.vmdk",
388
388
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
389
- source_datacenter="dc-01",
390
- source_datastore="datastore-01",
391
- source_file="/my/src/path/custom_ubuntu.vmdk")
389
+ create_directories=True)
392
390
  ```
393
- <!--End PulumiCodeChooser -->
394
391
 
395
392
  :param str resource_name: The name of the resource.
396
393
  :param FileArgs args: The arguments to use to populate this resource's properties.