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/file.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
 
12
17
  __all__ = ['FileArgs', 'File']
@@ -14,30 +19,27 @@ __all__ = ['FileArgs', 'File']
14
19
  @pulumi.input_type
15
20
  class FileArgs:
16
21
  def __init__(__self__, *,
17
- datastore: pulumi.Input[str],
18
- destination_file: pulumi.Input[str],
19
- source_file: pulumi.Input[str],
20
- create_directories: Optional[pulumi.Input[bool]] = None,
21
- datacenter: Optional[pulumi.Input[str]] = None,
22
- source_datacenter: Optional[pulumi.Input[str]] = None,
23
- source_datastore: Optional[pulumi.Input[str]] = None):
22
+ datastore: pulumi.Input[_builtins.str],
23
+ destination_file: pulumi.Input[_builtins.str],
24
+ source_file: pulumi.Input[_builtins.str],
25
+ create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
26
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
27
+ source_datacenter: Optional[pulumi.Input[_builtins.str]] = None,
28
+ source_datastore: Optional[pulumi.Input[_builtins.str]] = None):
24
29
  """
25
30
  The set of arguments for constructing a File resource.
26
- :param pulumi.Input[str] datastore: The name of the datastore to which to upload the
31
+ :param pulumi.Input[_builtins.str] datastore: The name of the datastore to which to upload the
27
32
  file.
28
- :param pulumi.Input[str] destination_file: The path to where the file should be uploaded
29
- or copied to on the destination `datastore` in vSphere.
30
- :param pulumi.Input[bool] create_directories: Create directories in `destination_file`
31
- path parameter on first apply if any are missing for copy operation.
32
-
33
- > **NOTE:** Any directory created as part of the `create_directories` argument
34
- will not be deleted when the resource is destroyed. New directories are not
35
- created if the `destination_file` path is changed in subsequent applies.
36
- :param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
33
+ :param pulumi.Input[_builtins.str] destination_file: The path to where the file should be uploaded
34
+ or copied to on the destination datastore.
35
+ :param pulumi.Input[_builtins.str] source_file: The path to the file being uploaded from or copied.
36
+ Forces a new resource if changed.
37
+ :param pulumi.Input[_builtins.bool] create_directories: Specifies whether to create the parent directories of the destination file if they do not exist.
38
+ :param pulumi.Input[_builtins.str] datacenter: The name of a datacenter to which the file will be
37
39
  uploaded.
38
- :param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
40
+ :param pulumi.Input[_builtins.str] source_datacenter: The name of a datacenter from which the file
39
41
  will be copied. Forces a new resource if changed.
40
- :param pulumi.Input[str] source_datastore: The name of the datastore from which file will
42
+ :param pulumi.Input[_builtins.str] source_datastore: The name of the datastore from which file will
41
43
  be copied. Forces a new resource if changed.
42
44
  """
43
45
  pulumi.set(__self__, "datastore", datastore)
@@ -52,9 +54,9 @@ class FileArgs:
52
54
  if source_datastore is not None:
53
55
  pulumi.set(__self__, "source_datastore", source_datastore)
54
56
 
55
- @property
57
+ @_builtins.property
56
58
  @pulumi.getter
57
- def datastore(self) -> pulumi.Input[str]:
59
+ def datastore(self) -> pulumi.Input[_builtins.str]:
58
60
  """
59
61
  The name of the datastore to which to upload the
60
62
  file.
@@ -62,51 +64,50 @@ class FileArgs:
62
64
  return pulumi.get(self, "datastore")
63
65
 
64
66
  @datastore.setter
65
- def datastore(self, value: pulumi.Input[str]):
67
+ def datastore(self, value: pulumi.Input[_builtins.str]):
66
68
  pulumi.set(self, "datastore", value)
67
69
 
68
- @property
70
+ @_builtins.property
69
71
  @pulumi.getter(name="destinationFile")
70
- def destination_file(self) -> pulumi.Input[str]:
72
+ def destination_file(self) -> pulumi.Input[_builtins.str]:
71
73
  """
72
74
  The path to where the file should be uploaded
73
- or copied to on the destination `datastore` in vSphere.
75
+ or copied to on the destination datastore.
74
76
  """
75
77
  return pulumi.get(self, "destination_file")
76
78
 
77
79
  @destination_file.setter
78
- def destination_file(self, value: pulumi.Input[str]):
80
+ def destination_file(self, value: pulumi.Input[_builtins.str]):
79
81
  pulumi.set(self, "destination_file", value)
80
82
 
81
- @property
83
+ @_builtins.property
82
84
  @pulumi.getter(name="sourceFile")
83
- def source_file(self) -> pulumi.Input[str]:
85
+ def source_file(self) -> pulumi.Input[_builtins.str]:
86
+ """
87
+ The path to the file being uploaded from or copied.
88
+ Forces a new resource if changed.
89
+ """
84
90
  return pulumi.get(self, "source_file")
85
91
 
86
92
  @source_file.setter
87
- def source_file(self, value: pulumi.Input[str]):
93
+ def source_file(self, value: pulumi.Input[_builtins.str]):
88
94
  pulumi.set(self, "source_file", value)
89
95
 
90
- @property
96
+ @_builtins.property
91
97
  @pulumi.getter(name="createDirectories")
92
- def create_directories(self) -> Optional[pulumi.Input[bool]]:
98
+ def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
93
99
  """
94
- Create directories in `destination_file`
95
- path parameter on first apply if any are missing for copy operation.
96
-
97
- > **NOTE:** Any directory created as part of the `create_directories` argument
98
- will not be deleted when the resource is destroyed. New directories are not
99
- created if the `destination_file` path is changed in subsequent applies.
100
+ Specifies whether to create the parent directories of the destination file if they do not exist.
100
101
  """
101
102
  return pulumi.get(self, "create_directories")
102
103
 
103
104
  @create_directories.setter
104
- def create_directories(self, value: Optional[pulumi.Input[bool]]):
105
+ def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
105
106
  pulumi.set(self, "create_directories", value)
106
107
 
107
- @property
108
+ @_builtins.property
108
109
  @pulumi.getter
109
- def datacenter(self) -> Optional[pulumi.Input[str]]:
110
+ def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
110
111
  """
111
112
  The name of a datacenter to which the file will be
112
113
  uploaded.
@@ -114,12 +115,12 @@ class FileArgs:
114
115
  return pulumi.get(self, "datacenter")
115
116
 
116
117
  @datacenter.setter
117
- def datacenter(self, value: Optional[pulumi.Input[str]]):
118
+ def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
118
119
  pulumi.set(self, "datacenter", value)
119
120
 
120
- @property
121
+ @_builtins.property
121
122
  @pulumi.getter(name="sourceDatacenter")
122
- def source_datacenter(self) -> Optional[pulumi.Input[str]]:
123
+ def source_datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
123
124
  """
124
125
  The name of a datacenter from which the file
125
126
  will be copied. Forces a new resource if changed.
@@ -127,12 +128,12 @@ class FileArgs:
127
128
  return pulumi.get(self, "source_datacenter")
128
129
 
129
130
  @source_datacenter.setter
130
- def source_datacenter(self, value: Optional[pulumi.Input[str]]):
131
+ def source_datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
131
132
  pulumi.set(self, "source_datacenter", value)
132
133
 
133
- @property
134
+ @_builtins.property
134
135
  @pulumi.getter(name="sourceDatastore")
135
- def source_datastore(self) -> Optional[pulumi.Input[str]]:
136
+ def source_datastore(self) -> Optional[pulumi.Input[_builtins.str]]:
136
137
  """
137
138
  The name of the datastore from which file will
138
139
  be copied. Forces a new resource if changed.
@@ -140,38 +141,35 @@ class FileArgs:
140
141
  return pulumi.get(self, "source_datastore")
141
142
 
142
143
  @source_datastore.setter
143
- def source_datastore(self, value: Optional[pulumi.Input[str]]):
144
+ def source_datastore(self, value: Optional[pulumi.Input[_builtins.str]]):
144
145
  pulumi.set(self, "source_datastore", value)
145
146
 
146
147
 
147
148
  @pulumi.input_type
148
149
  class _FileState:
149
150
  def __init__(__self__, *,
150
- create_directories: Optional[pulumi.Input[bool]] = None,
151
- datacenter: Optional[pulumi.Input[str]] = None,
152
- datastore: Optional[pulumi.Input[str]] = None,
153
- destination_file: Optional[pulumi.Input[str]] = None,
154
- source_datacenter: Optional[pulumi.Input[str]] = None,
155
- source_datastore: Optional[pulumi.Input[str]] = None,
156
- source_file: Optional[pulumi.Input[str]] = None):
151
+ create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
152
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
153
+ datastore: Optional[pulumi.Input[_builtins.str]] = None,
154
+ destination_file: Optional[pulumi.Input[_builtins.str]] = None,
155
+ source_datacenter: Optional[pulumi.Input[_builtins.str]] = None,
156
+ source_datastore: Optional[pulumi.Input[_builtins.str]] = None,
157
+ source_file: Optional[pulumi.Input[_builtins.str]] = None):
157
158
  """
158
159
  Input properties used for looking up and filtering File resources.
159
- :param pulumi.Input[bool] create_directories: Create directories in `destination_file`
160
- path parameter on first apply if any are missing for copy operation.
161
-
162
- > **NOTE:** Any directory created as part of the `create_directories` argument
163
- will not be deleted when the resource is destroyed. New directories are not
164
- created if the `destination_file` path is changed in subsequent applies.
165
- :param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
160
+ :param pulumi.Input[_builtins.bool] create_directories: Specifies whether to create the parent directories of the destination file if they do not exist.
161
+ :param pulumi.Input[_builtins.str] datacenter: The name of a datacenter to which the file will be
166
162
  uploaded.
167
- :param pulumi.Input[str] datastore: The name of the datastore to which to upload the
163
+ :param pulumi.Input[_builtins.str] datastore: The name of the datastore to which to upload the
168
164
  file.
169
- :param pulumi.Input[str] destination_file: The path to where the file should be uploaded
170
- or copied to on the destination `datastore` in vSphere.
171
- :param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
165
+ :param pulumi.Input[_builtins.str] destination_file: The path to where the file should be uploaded
166
+ or copied to on the destination datastore.
167
+ :param pulumi.Input[_builtins.str] source_datacenter: The name of a datacenter from which the file
172
168
  will be copied. Forces a new resource if changed.
173
- :param pulumi.Input[str] source_datastore: The name of the datastore from which file will
169
+ :param pulumi.Input[_builtins.str] source_datastore: The name of the datastore from which file will
174
170
  be copied. Forces a new resource if changed.
171
+ :param pulumi.Input[_builtins.str] source_file: The path to the file being uploaded from or copied.
172
+ Forces a new resource if changed.
175
173
  """
176
174
  if create_directories is not None:
177
175
  pulumi.set(__self__, "create_directories", create_directories)
@@ -188,26 +186,21 @@ class _FileState:
188
186
  if source_file is not None:
189
187
  pulumi.set(__self__, "source_file", source_file)
190
188
 
191
- @property
189
+ @_builtins.property
192
190
  @pulumi.getter(name="createDirectories")
193
- def create_directories(self) -> Optional[pulumi.Input[bool]]:
191
+ def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
194
192
  """
195
- Create directories in `destination_file`
196
- path parameter on first apply if any are missing for copy operation.
197
-
198
- > **NOTE:** Any directory created as part of the `create_directories` argument
199
- will not be deleted when the resource is destroyed. New directories are not
200
- created if the `destination_file` path is changed in subsequent applies.
193
+ Specifies whether to create the parent directories of the destination file if they do not exist.
201
194
  """
202
195
  return pulumi.get(self, "create_directories")
203
196
 
204
197
  @create_directories.setter
205
- def create_directories(self, value: Optional[pulumi.Input[bool]]):
198
+ def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
206
199
  pulumi.set(self, "create_directories", value)
207
200
 
208
- @property
201
+ @_builtins.property
209
202
  @pulumi.getter
210
- def datacenter(self) -> Optional[pulumi.Input[str]]:
203
+ def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
211
204
  """
212
205
  The name of a datacenter to which the file will be
213
206
  uploaded.
@@ -215,12 +208,12 @@ class _FileState:
215
208
  return pulumi.get(self, "datacenter")
216
209
 
217
210
  @datacenter.setter
218
- def datacenter(self, value: Optional[pulumi.Input[str]]):
211
+ def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
219
212
  pulumi.set(self, "datacenter", value)
220
213
 
221
- @property
214
+ @_builtins.property
222
215
  @pulumi.getter
223
- def datastore(self) -> Optional[pulumi.Input[str]]:
216
+ def datastore(self) -> Optional[pulumi.Input[_builtins.str]]:
224
217
  """
225
218
  The name of the datastore to which to upload the
226
219
  file.
@@ -228,25 +221,25 @@ class _FileState:
228
221
  return pulumi.get(self, "datastore")
229
222
 
230
223
  @datastore.setter
231
- def datastore(self, value: Optional[pulumi.Input[str]]):
224
+ def datastore(self, value: Optional[pulumi.Input[_builtins.str]]):
232
225
  pulumi.set(self, "datastore", value)
233
226
 
234
- @property
227
+ @_builtins.property
235
228
  @pulumi.getter(name="destinationFile")
236
- def destination_file(self) -> Optional[pulumi.Input[str]]:
229
+ def destination_file(self) -> Optional[pulumi.Input[_builtins.str]]:
237
230
  """
238
231
  The path to where the file should be uploaded
239
- or copied to on the destination `datastore` in vSphere.
232
+ or copied to on the destination datastore.
240
233
  """
241
234
  return pulumi.get(self, "destination_file")
242
235
 
243
236
  @destination_file.setter
244
- def destination_file(self, value: Optional[pulumi.Input[str]]):
237
+ def destination_file(self, value: Optional[pulumi.Input[_builtins.str]]):
245
238
  pulumi.set(self, "destination_file", value)
246
239
 
247
- @property
240
+ @_builtins.property
248
241
  @pulumi.getter(name="sourceDatacenter")
249
- def source_datacenter(self) -> Optional[pulumi.Input[str]]:
242
+ def source_datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
250
243
  """
251
244
  The name of a datacenter from which the file
252
245
  will be copied. Forces a new resource if changed.
@@ -254,12 +247,12 @@ class _FileState:
254
247
  return pulumi.get(self, "source_datacenter")
255
248
 
256
249
  @source_datacenter.setter
257
- def source_datacenter(self, value: Optional[pulumi.Input[str]]):
250
+ def source_datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
258
251
  pulumi.set(self, "source_datacenter", value)
259
252
 
260
- @property
253
+ @_builtins.property
261
254
  @pulumi.getter(name="sourceDatastore")
262
- def source_datastore(self) -> Optional[pulumi.Input[str]]:
255
+ def source_datastore(self) -> Optional[pulumi.Input[_builtins.str]]:
263
256
  """
264
257
  The name of the datastore from which file will
265
258
  be copied. Forces a new resource if changed.
@@ -267,81 +260,85 @@ class _FileState:
267
260
  return pulumi.get(self, "source_datastore")
268
261
 
269
262
  @source_datastore.setter
270
- def source_datastore(self, value: Optional[pulumi.Input[str]]):
263
+ def source_datastore(self, value: Optional[pulumi.Input[_builtins.str]]):
271
264
  pulumi.set(self, "source_datastore", value)
272
265
 
273
- @property
266
+ @_builtins.property
274
267
  @pulumi.getter(name="sourceFile")
275
- def source_file(self) -> Optional[pulumi.Input[str]]:
268
+ def source_file(self) -> Optional[pulumi.Input[_builtins.str]]:
269
+ """
270
+ The path to the file being uploaded from or copied.
271
+ Forces a new resource if changed.
272
+ """
276
273
  return pulumi.get(self, "source_file")
277
274
 
278
275
  @source_file.setter
279
- def source_file(self, value: Optional[pulumi.Input[str]]):
276
+ def source_file(self, value: Optional[pulumi.Input[_builtins.str]]):
280
277
  pulumi.set(self, "source_file", value)
281
278
 
282
279
 
280
+ @pulumi.type_token("vsphere:index/file:File")
283
281
  class File(pulumi.CustomResource):
284
282
  @overload
285
283
  def __init__(__self__,
286
284
  resource_name: str,
287
285
  opts: Optional[pulumi.ResourceOptions] = None,
288
- create_directories: Optional[pulumi.Input[bool]] = None,
289
- datacenter: Optional[pulumi.Input[str]] = None,
290
- datastore: Optional[pulumi.Input[str]] = None,
291
- destination_file: Optional[pulumi.Input[str]] = None,
292
- source_datacenter: Optional[pulumi.Input[str]] = None,
293
- source_datastore: Optional[pulumi.Input[str]] = None,
294
- source_file: Optional[pulumi.Input[str]] = None,
286
+ create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
287
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
288
+ datastore: Optional[pulumi.Input[_builtins.str]] = None,
289
+ destination_file: Optional[pulumi.Input[_builtins.str]] = None,
290
+ source_datacenter: Optional[pulumi.Input[_builtins.str]] = None,
291
+ source_datastore: Optional[pulumi.Input[_builtins.str]] = None,
292
+ source_file: Optional[pulumi.Input[_builtins.str]] = None,
295
293
  __props__=None):
296
294
  """
297
295
  ## Example Usage
296
+
298
297
  ### Uploading a File
299
298
 
300
299
  ```python
301
300
  import pulumi
302
301
  import pulumi_vsphere as vsphere
303
302
 
304
- ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
305
- create_directories=True,
303
+ ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
306
304
  datacenter="dc-01",
307
305
  datastore="datastore-01",
306
+ source_file="/my/src/path/custom_ubuntu.vmdk",
308
307
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
309
- source_file="/my/src/path/custom_ubuntu.vmdk")
308
+ create_directories=True)
310
309
  ```
310
+
311
311
  ### Copying a File
312
312
 
313
313
  ```python
314
314
  import pulumi
315
315
  import pulumi_vsphere as vsphere
316
316
 
317
- ubuntu_copy = vsphere.File("ubuntuCopy",
318
- create_directories=True,
317
+ ubuntu_copy = vsphere.File("ubuntu_copy",
318
+ source_datacenter="dc-01",
319
319
  datacenter="dc-01",
320
+ source_datastore="datastore-01",
320
321
  datastore="datastore-01",
322
+ source_file="/my/src/path/custom_ubuntu.vmdk",
321
323
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
322
- source_datacenter="dc-01",
323
- source_datastore="datastore-01",
324
- source_file="/my/src/path/custom_ubuntu.vmdk")
324
+ create_directories=True)
325
325
  ```
326
326
 
327
327
  :param str resource_name: The name of the resource.
328
328
  :param pulumi.ResourceOptions opts: Options for the resource.
329
- :param pulumi.Input[bool] create_directories: Create directories in `destination_file`
330
- path parameter on first apply if any are missing for copy operation.
331
-
332
- > **NOTE:** Any directory created as part of the `create_directories` argument
333
- will not be deleted when the resource is destroyed. New directories are not
334
- created if the `destination_file` path is changed in subsequent applies.
335
- :param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
329
+ :param pulumi.Input[_builtins.bool] create_directories: Specifies whether to create the parent directories of the destination file if they do not exist.
330
+ :param pulumi.Input[_builtins.str] datacenter: The name of a datacenter to which the file will be
336
331
  uploaded.
337
- :param pulumi.Input[str] datastore: The name of the datastore to which to upload the
332
+ :param pulumi.Input[_builtins.str] datastore: The name of the datastore to which to upload the
338
333
  file.
339
- :param pulumi.Input[str] destination_file: The path to where the file should be uploaded
340
- or copied to on the destination `datastore` in vSphere.
341
- :param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
334
+ :param pulumi.Input[_builtins.str] destination_file: The path to where the file should be uploaded
335
+ or copied to on the destination datastore.
336
+ :param pulumi.Input[_builtins.str] source_datacenter: The name of a datacenter from which the file
342
337
  will be copied. Forces a new resource if changed.
343
- :param pulumi.Input[str] source_datastore: The name of the datastore from which file will
338
+ :param pulumi.Input[_builtins.str] source_datastore: The name of the datastore from which file will
344
339
  be copied. Forces a new resource if changed.
340
+ :param pulumi.Input[_builtins.str] source_file: The path to the file being uploaded from or copied.
341
+ Forces a new resource if changed.
345
342
  """
346
343
  ...
347
344
  @overload
@@ -351,33 +348,35 @@ class File(pulumi.CustomResource):
351
348
  opts: Optional[pulumi.ResourceOptions] = None):
352
349
  """
353
350
  ## Example Usage
351
+
354
352
  ### Uploading a File
355
353
 
356
354
  ```python
357
355
  import pulumi
358
356
  import pulumi_vsphere as vsphere
359
357
 
360
- ubuntu_vmdk_upload = vsphere.File("ubuntuVmdkUpload",
361
- create_directories=True,
358
+ ubuntu_vmdk_upload = vsphere.File("ubuntu_vmdk_upload",
362
359
  datacenter="dc-01",
363
360
  datastore="datastore-01",
361
+ source_file="/my/src/path/custom_ubuntu.vmdk",
364
362
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
365
- source_file="/my/src/path/custom_ubuntu.vmdk")
363
+ create_directories=True)
366
364
  ```
365
+
367
366
  ### Copying a File
368
367
 
369
368
  ```python
370
369
  import pulumi
371
370
  import pulumi_vsphere as vsphere
372
371
 
373
- ubuntu_copy = vsphere.File("ubuntuCopy",
374
- create_directories=True,
372
+ ubuntu_copy = vsphere.File("ubuntu_copy",
373
+ source_datacenter="dc-01",
375
374
  datacenter="dc-01",
375
+ source_datastore="datastore-01",
376
376
  datastore="datastore-01",
377
+ source_file="/my/src/path/custom_ubuntu.vmdk",
377
378
  destination_file="/my/dst/path/custom_ubuntu.vmdk",
378
- source_datacenter="dc-01",
379
- source_datastore="datastore-01",
380
- source_file="/my/src/path/custom_ubuntu.vmdk")
379
+ create_directories=True)
381
380
  ```
382
381
 
383
382
  :param str resource_name: The name of the resource.
@@ -395,13 +394,13 @@ class File(pulumi.CustomResource):
395
394
  def _internal_init(__self__,
396
395
  resource_name: str,
397
396
  opts: Optional[pulumi.ResourceOptions] = None,
398
- create_directories: Optional[pulumi.Input[bool]] = None,
399
- datacenter: Optional[pulumi.Input[str]] = None,
400
- datastore: Optional[pulumi.Input[str]] = None,
401
- destination_file: Optional[pulumi.Input[str]] = None,
402
- source_datacenter: Optional[pulumi.Input[str]] = None,
403
- source_datastore: Optional[pulumi.Input[str]] = None,
404
- source_file: Optional[pulumi.Input[str]] = None,
397
+ create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
398
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
399
+ datastore: Optional[pulumi.Input[_builtins.str]] = None,
400
+ destination_file: Optional[pulumi.Input[_builtins.str]] = None,
401
+ source_datacenter: Optional[pulumi.Input[_builtins.str]] = None,
402
+ source_datastore: Optional[pulumi.Input[_builtins.str]] = None,
403
+ source_file: Optional[pulumi.Input[_builtins.str]] = None,
405
404
  __props__=None):
406
405
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
407
406
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -434,13 +433,13 @@ class File(pulumi.CustomResource):
434
433
  def get(resource_name: str,
435
434
  id: pulumi.Input[str],
436
435
  opts: Optional[pulumi.ResourceOptions] = None,
437
- create_directories: Optional[pulumi.Input[bool]] = None,
438
- datacenter: Optional[pulumi.Input[str]] = None,
439
- datastore: Optional[pulumi.Input[str]] = None,
440
- destination_file: Optional[pulumi.Input[str]] = None,
441
- source_datacenter: Optional[pulumi.Input[str]] = None,
442
- source_datastore: Optional[pulumi.Input[str]] = None,
443
- source_file: Optional[pulumi.Input[str]] = None) -> 'File':
436
+ create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
437
+ datacenter: Optional[pulumi.Input[_builtins.str]] = None,
438
+ datastore: Optional[pulumi.Input[_builtins.str]] = None,
439
+ destination_file: Optional[pulumi.Input[_builtins.str]] = None,
440
+ source_datacenter: Optional[pulumi.Input[_builtins.str]] = None,
441
+ source_datastore: Optional[pulumi.Input[_builtins.str]] = None,
442
+ source_file: Optional[pulumi.Input[_builtins.str]] = None) -> 'File':
444
443
  """
445
444
  Get an existing File resource's state with the given name, id, and optional extra
446
445
  properties used to qualify the lookup.
@@ -448,22 +447,19 @@ class File(pulumi.CustomResource):
448
447
  :param str resource_name: The unique name of the resulting resource.
449
448
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
450
449
  :param pulumi.ResourceOptions opts: Options for the resource.
451
- :param pulumi.Input[bool] create_directories: Create directories in `destination_file`
452
- path parameter on first apply if any are missing for copy operation.
453
-
454
- > **NOTE:** Any directory created as part of the `create_directories` argument
455
- will not be deleted when the resource is destroyed. New directories are not
456
- created if the `destination_file` path is changed in subsequent applies.
457
- :param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
450
+ :param pulumi.Input[_builtins.bool] create_directories: Specifies whether to create the parent directories of the destination file if they do not exist.
451
+ :param pulumi.Input[_builtins.str] datacenter: The name of a datacenter to which the file will be
458
452
  uploaded.
459
- :param pulumi.Input[str] datastore: The name of the datastore to which to upload the
453
+ :param pulumi.Input[_builtins.str] datastore: The name of the datastore to which to upload the
460
454
  file.
461
- :param pulumi.Input[str] destination_file: The path to where the file should be uploaded
462
- or copied to on the destination `datastore` in vSphere.
463
- :param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
455
+ :param pulumi.Input[_builtins.str] destination_file: The path to where the file should be uploaded
456
+ or copied to on the destination datastore.
457
+ :param pulumi.Input[_builtins.str] source_datacenter: The name of a datacenter from which the file
464
458
  will be copied. Forces a new resource if changed.
465
- :param pulumi.Input[str] source_datastore: The name of the datastore from which file will
459
+ :param pulumi.Input[_builtins.str] source_datastore: The name of the datastore from which file will
466
460
  be copied. Forces a new resource if changed.
461
+ :param pulumi.Input[_builtins.str] source_file: The path to the file being uploaded from or copied.
462
+ Forces a new resource if changed.
467
463
  """
468
464
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
469
465
 
@@ -478,66 +474,65 @@ class File(pulumi.CustomResource):
478
474
  __props__.__dict__["source_file"] = source_file
479
475
  return File(resource_name, opts=opts, __props__=__props__)
480
476
 
481
- @property
477
+ @_builtins.property
482
478
  @pulumi.getter(name="createDirectories")
483
- def create_directories(self) -> pulumi.Output[Optional[bool]]:
479
+ def create_directories(self) -> pulumi.Output[Optional[_builtins.bool]]:
484
480
  """
485
- Create directories in `destination_file`
486
- path parameter on first apply if any are missing for copy operation.
487
-
488
- > **NOTE:** Any directory created as part of the `create_directories` argument
489
- will not be deleted when the resource is destroyed. New directories are not
490
- created if the `destination_file` path is changed in subsequent applies.
481
+ Specifies whether to create the parent directories of the destination file if they do not exist.
491
482
  """
492
483
  return pulumi.get(self, "create_directories")
493
484
 
494
- @property
485
+ @_builtins.property
495
486
  @pulumi.getter
496
- def datacenter(self) -> pulumi.Output[Optional[str]]:
487
+ def datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
497
488
  """
498
489
  The name of a datacenter to which the file will be
499
490
  uploaded.
500
491
  """
501
492
  return pulumi.get(self, "datacenter")
502
493
 
503
- @property
494
+ @_builtins.property
504
495
  @pulumi.getter
505
- def datastore(self) -> pulumi.Output[str]:
496
+ def datastore(self) -> pulumi.Output[_builtins.str]:
506
497
  """
507
498
  The name of the datastore to which to upload the
508
499
  file.
509
500
  """
510
501
  return pulumi.get(self, "datastore")
511
502
 
512
- @property
503
+ @_builtins.property
513
504
  @pulumi.getter(name="destinationFile")
514
- def destination_file(self) -> pulumi.Output[str]:
505
+ def destination_file(self) -> pulumi.Output[_builtins.str]:
515
506
  """
516
507
  The path to where the file should be uploaded
517
- or copied to on the destination `datastore` in vSphere.
508
+ or copied to on the destination datastore.
518
509
  """
519
510
  return pulumi.get(self, "destination_file")
520
511
 
521
- @property
512
+ @_builtins.property
522
513
  @pulumi.getter(name="sourceDatacenter")
523
- def source_datacenter(self) -> pulumi.Output[Optional[str]]:
514
+ def source_datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
524
515
  """
525
516
  The name of a datacenter from which the file
526
517
  will be copied. Forces a new resource if changed.
527
518
  """
528
519
  return pulumi.get(self, "source_datacenter")
529
520
 
530
- @property
521
+ @_builtins.property
531
522
  @pulumi.getter(name="sourceDatastore")
532
- def source_datastore(self) -> pulumi.Output[Optional[str]]:
523
+ def source_datastore(self) -> pulumi.Output[Optional[_builtins.str]]:
533
524
  """
534
525
  The name of the datastore from which file will
535
526
  be copied. Forces a new resource if changed.
536
527
  """
537
528
  return pulumi.get(self, "source_datastore")
538
529
 
539
- @property
530
+ @_builtins.property
540
531
  @pulumi.getter(name="sourceFile")
541
- def source_file(self) -> pulumi.Output[str]:
532
+ def source_file(self) -> pulumi.Output[_builtins.str]:
533
+ """
534
+ The path to the file being uploaded from or copied.
535
+ Forces a new resource if changed.
536
+ """
542
537
  return pulumi.get(self, "source_file")
543
538