pulumi-vsphere 4.14.0a1741997722__py3-none-any.whl → 4.14.0a1746734806__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +1 -0
- pulumi_vsphere/_inputs.py +969 -968
- pulumi_vsphere/compute_cluster.py +919 -917
- pulumi_vsphere/compute_cluster_host_group.py +44 -42
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +72 -70
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +72 -70
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +86 -84
- pulumi_vsphere/compute_cluster_vm_group.py +44 -42
- pulumi_vsphere/compute_cluster_vm_host_rule.py +100 -98
- pulumi_vsphere/config/__init__.py +1 -0
- pulumi_vsphere/config/__init__.pyi +1 -0
- pulumi_vsphere/config/vars.py +1 -0
- pulumi_vsphere/content_library.py +44 -42
- pulumi_vsphere/content_library_item.py +86 -84
- pulumi_vsphere/custom_attribute.py +30 -28
- pulumi_vsphere/datacenter.py +65 -63
- pulumi_vsphere/datastore_cluster.py +352 -350
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +72 -70
- pulumi_vsphere/distributed_port_group.py +646 -644
- pulumi_vsphere/distributed_virtual_switch.py +1283 -1281
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +58 -56
- pulumi_vsphere/dpm_host_override.py +58 -56
- pulumi_vsphere/drs_vm_override.py +58 -56
- pulumi_vsphere/entity_permissions.py +30 -28
- pulumi_vsphere/file.py +96 -94
- pulumi_vsphere/folder.py +72 -70
- pulumi_vsphere/get_compute_cluster.py +13 -12
- pulumi_vsphere/get_compute_cluster_host_group.py +13 -12
- pulumi_vsphere/get_content_library.py +7 -6
- pulumi_vsphere/get_content_library_item.py +17 -16
- pulumi_vsphere/get_custom_attribute.py +8 -7
- pulumi_vsphere/get_datacenter.py +8 -7
- pulumi_vsphere/get_datastore.py +17 -16
- pulumi_vsphere/get_datastore_cluster.py +13 -12
- pulumi_vsphere/get_datastore_stats.py +17 -16
- pulumi_vsphere/get_distributed_virtual_switch.py +13 -12
- pulumi_vsphere/get_dynamic.py +17 -16
- pulumi_vsphere/get_folder.py +7 -6
- pulumi_vsphere/get_guest_os_customization.py +11 -10
- pulumi_vsphere/get_host.py +13 -12
- pulumi_vsphere/get_host_base_images.py +3 -2
- pulumi_vsphere/get_host_pci_device.py +23 -22
- pulumi_vsphere/get_host_thumbprint.py +17 -16
- pulumi_vsphere/get_host_vgpu_profile.py +12 -11
- pulumi_vsphere/get_license.py +12 -11
- pulumi_vsphere/get_network.py +18 -17
- pulumi_vsphere/get_ovf_vm_template.py +89 -88
- pulumi_vsphere/get_policy.py +7 -6
- pulumi_vsphere/get_resource_pool.py +12 -11
- pulumi_vsphere/get_role.py +20 -19
- pulumi_vsphere/get_tag.py +13 -12
- pulumi_vsphere/get_tag_category.py +10 -9
- pulumi_vsphere/get_vapp_container.py +12 -11
- pulumi_vsphere/get_virtual_machine.py +204 -203
- pulumi_vsphere/get_vmfs_disks.py +18 -17
- pulumi_vsphere/guest_os_customization.py +58 -56
- pulumi_vsphere/ha_vm_override.py +212 -210
- pulumi_vsphere/host.py +198 -196
- pulumi_vsphere/host_port_group.py +254 -252
- pulumi_vsphere/host_virtual_switch.py +296 -294
- pulumi_vsphere/license.py +58 -56
- pulumi_vsphere/nas_datastore.py +212 -210
- pulumi_vsphere/offline_software_depot.py +16 -14
- pulumi_vsphere/outputs.py +721 -720
- pulumi_vsphere/provider.py +119 -97
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +212 -210
- pulumi_vsphere/role.py +37 -35
- pulumi_vsphere/storage_drs_vm_override.py +72 -70
- pulumi_vsphere/supervisor.py +156 -154
- pulumi_vsphere/tag.py +44 -42
- pulumi_vsphere/tag_category.py +58 -56
- pulumi_vsphere/vapp_container.py +212 -210
- pulumi_vsphere/vapp_entity.py +142 -140
- pulumi_vsphere/virtual_disk.py +100 -98
- pulumi_vsphere/virtual_machine.py +1041 -1039
- pulumi_vsphere/virtual_machine_class.py +86 -84
- pulumi_vsphere/virtual_machine_snapshot.py +100 -98
- pulumi_vsphere/vm_storage_policy.py +30 -28
- pulumi_vsphere/vmfs_datastore.py +149 -147
- pulumi_vsphere/vnic.py +114 -112
- {pulumi_vsphere-4.14.0a1741997722.dist-info → pulumi_vsphere-4.14.0a1746734806.dist-info}/METADATA +4 -4
- pulumi_vsphere-4.14.0a1746734806.dist-info/RECORD +87 -0
- {pulumi_vsphere-4.14.0a1741997722.dist-info → pulumi_vsphere-4.14.0a1746734806.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1741997722.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1741997722.dist-info → pulumi_vsphere-4.14.0a1746734806.dist-info}/top_level.txt +0 -0
pulumi_vsphere/file.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -19,30 +20,30 @@ __all__ = ['FileArgs', 'File']
|
|
|
19
20
|
@pulumi.input_type
|
|
20
21
|
class FileArgs:
|
|
21
22
|
def __init__(__self__, *,
|
|
22
|
-
datastore: pulumi.Input[str],
|
|
23
|
-
destination_file: pulumi.Input[str],
|
|
24
|
-
source_file: pulumi.Input[str],
|
|
25
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
26
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
27
|
-
source_datacenter: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
source_datastore: Optional[pulumi.Input[str]] = None):
|
|
23
|
+
datastore: pulumi.Input[builtins.str],
|
|
24
|
+
destination_file: pulumi.Input[builtins.str],
|
|
25
|
+
source_file: pulumi.Input[builtins.str],
|
|
26
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
27
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
28
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
29
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None):
|
|
29
30
|
"""
|
|
30
31
|
The set of arguments for constructing a File resource.
|
|
31
|
-
:param pulumi.Input[str] datastore: The name of the datastore to which to upload the
|
|
32
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore to which to upload the
|
|
32
33
|
file.
|
|
33
|
-
:param pulumi.Input[str] destination_file: The path to where the file should be uploaded
|
|
34
|
+
:param pulumi.Input[builtins.str] destination_file: The path to where the file should be uploaded
|
|
34
35
|
or copied to on the destination `datastore` in vSphere.
|
|
35
|
-
:param pulumi.Input[bool] create_directories: Create directories in `destination_file`
|
|
36
|
+
:param pulumi.Input[builtins.bool] create_directories: Create directories in `destination_file`
|
|
36
37
|
path parameter on first apply if any are missing for copy operation.
|
|
37
38
|
|
|
38
39
|
> **NOTE:** Any directory created as part of the `create_directories` argument
|
|
39
40
|
will not be deleted when the resource is destroyed. New directories are not
|
|
40
41
|
created if the `destination_file` path is changed in subsequent applies.
|
|
41
|
-
:param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
|
|
42
|
+
:param pulumi.Input[builtins.str] datacenter: The name of a datacenter to which the file will be
|
|
42
43
|
uploaded.
|
|
43
|
-
:param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
|
|
44
|
+
:param pulumi.Input[builtins.str] source_datacenter: The name of a datacenter from which the file
|
|
44
45
|
will be copied. Forces a new resource if changed.
|
|
45
|
-
:param pulumi.Input[str] source_datastore: The name of the datastore from which file will
|
|
46
|
+
:param pulumi.Input[builtins.str] source_datastore: The name of the datastore from which file will
|
|
46
47
|
be copied. Forces a new resource if changed.
|
|
47
48
|
"""
|
|
48
49
|
pulumi.set(__self__, "datastore", datastore)
|
|
@@ -59,7 +60,7 @@ class FileArgs:
|
|
|
59
60
|
|
|
60
61
|
@property
|
|
61
62
|
@pulumi.getter
|
|
62
|
-
def datastore(self) -> pulumi.Input[str]:
|
|
63
|
+
def datastore(self) -> pulumi.Input[builtins.str]:
|
|
63
64
|
"""
|
|
64
65
|
The name of the datastore to which to upload the
|
|
65
66
|
file.
|
|
@@ -67,12 +68,12 @@ class FileArgs:
|
|
|
67
68
|
return pulumi.get(self, "datastore")
|
|
68
69
|
|
|
69
70
|
@datastore.setter
|
|
70
|
-
def datastore(self, value: pulumi.Input[str]):
|
|
71
|
+
def datastore(self, value: pulumi.Input[builtins.str]):
|
|
71
72
|
pulumi.set(self, "datastore", value)
|
|
72
73
|
|
|
73
74
|
@property
|
|
74
75
|
@pulumi.getter(name="destinationFile")
|
|
75
|
-
def destination_file(self) -> pulumi.Input[str]:
|
|
76
|
+
def destination_file(self) -> pulumi.Input[builtins.str]:
|
|
76
77
|
"""
|
|
77
78
|
The path to where the file should be uploaded
|
|
78
79
|
or copied to on the destination `datastore` in vSphere.
|
|
@@ -80,21 +81,21 @@ class FileArgs:
|
|
|
80
81
|
return pulumi.get(self, "destination_file")
|
|
81
82
|
|
|
82
83
|
@destination_file.setter
|
|
83
|
-
def destination_file(self, value: pulumi.Input[str]):
|
|
84
|
+
def destination_file(self, value: pulumi.Input[builtins.str]):
|
|
84
85
|
pulumi.set(self, "destination_file", value)
|
|
85
86
|
|
|
86
87
|
@property
|
|
87
88
|
@pulumi.getter(name="sourceFile")
|
|
88
|
-
def source_file(self) -> pulumi.Input[str]:
|
|
89
|
+
def source_file(self) -> pulumi.Input[builtins.str]:
|
|
89
90
|
return pulumi.get(self, "source_file")
|
|
90
91
|
|
|
91
92
|
@source_file.setter
|
|
92
|
-
def source_file(self, value: pulumi.Input[str]):
|
|
93
|
+
def source_file(self, value: pulumi.Input[builtins.str]):
|
|
93
94
|
pulumi.set(self, "source_file", value)
|
|
94
95
|
|
|
95
96
|
@property
|
|
96
97
|
@pulumi.getter(name="createDirectories")
|
|
97
|
-
def create_directories(self) -> Optional[pulumi.Input[bool]]:
|
|
98
|
+
def create_directories(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
98
99
|
"""
|
|
99
100
|
Create directories in `destination_file`
|
|
100
101
|
path parameter on first apply if any are missing for copy operation.
|
|
@@ -106,12 +107,12 @@ class FileArgs:
|
|
|
106
107
|
return pulumi.get(self, "create_directories")
|
|
107
108
|
|
|
108
109
|
@create_directories.setter
|
|
109
|
-
def create_directories(self, value: Optional[pulumi.Input[bool]]):
|
|
110
|
+
def create_directories(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
110
111
|
pulumi.set(self, "create_directories", value)
|
|
111
112
|
|
|
112
113
|
@property
|
|
113
114
|
@pulumi.getter
|
|
114
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
115
|
+
def datacenter(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
115
116
|
"""
|
|
116
117
|
The name of a datacenter to which the file will be
|
|
117
118
|
uploaded.
|
|
@@ -119,12 +120,12 @@ class FileArgs:
|
|
|
119
120
|
return pulumi.get(self, "datacenter")
|
|
120
121
|
|
|
121
122
|
@datacenter.setter
|
|
122
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
123
|
+
def datacenter(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
123
124
|
pulumi.set(self, "datacenter", value)
|
|
124
125
|
|
|
125
126
|
@property
|
|
126
127
|
@pulumi.getter(name="sourceDatacenter")
|
|
127
|
-
def source_datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
128
|
+
def source_datacenter(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
128
129
|
"""
|
|
129
130
|
The name of a datacenter from which the file
|
|
130
131
|
will be copied. Forces a new resource if changed.
|
|
@@ -132,12 +133,12 @@ class FileArgs:
|
|
|
132
133
|
return pulumi.get(self, "source_datacenter")
|
|
133
134
|
|
|
134
135
|
@source_datacenter.setter
|
|
135
|
-
def source_datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
136
|
+
def source_datacenter(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
136
137
|
pulumi.set(self, "source_datacenter", value)
|
|
137
138
|
|
|
138
139
|
@property
|
|
139
140
|
@pulumi.getter(name="sourceDatastore")
|
|
140
|
-
def source_datastore(self) -> Optional[pulumi.Input[str]]:
|
|
141
|
+
def source_datastore(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
141
142
|
"""
|
|
142
143
|
The name of the datastore from which file will
|
|
143
144
|
be copied. Forces a new resource if changed.
|
|
@@ -145,37 +146,37 @@ class FileArgs:
|
|
|
145
146
|
return pulumi.get(self, "source_datastore")
|
|
146
147
|
|
|
147
148
|
@source_datastore.setter
|
|
148
|
-
def source_datastore(self, value: Optional[pulumi.Input[str]]):
|
|
149
|
+
def source_datastore(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
149
150
|
pulumi.set(self, "source_datastore", value)
|
|
150
151
|
|
|
151
152
|
|
|
152
153
|
@pulumi.input_type
|
|
153
154
|
class _FileState:
|
|
154
155
|
def __init__(__self__, *,
|
|
155
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
156
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
157
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
158
|
-
destination_file: Optional[pulumi.Input[str]] = None,
|
|
159
|
-
source_datacenter: Optional[pulumi.Input[str]] = None,
|
|
160
|
-
source_datastore: Optional[pulumi.Input[str]] = None,
|
|
161
|
-
source_file: Optional[pulumi.Input[str]] = None):
|
|
156
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
157
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
158
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
159
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
160
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
161
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
162
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None):
|
|
162
163
|
"""
|
|
163
164
|
Input properties used for looking up and filtering File resources.
|
|
164
|
-
:param pulumi.Input[bool] create_directories: Create directories in `destination_file`
|
|
165
|
+
:param pulumi.Input[builtins.bool] create_directories: Create directories in `destination_file`
|
|
165
166
|
path parameter on first apply if any are missing for copy operation.
|
|
166
167
|
|
|
167
168
|
> **NOTE:** Any directory created as part of the `create_directories` argument
|
|
168
169
|
will not be deleted when the resource is destroyed. New directories are not
|
|
169
170
|
created if the `destination_file` path is changed in subsequent applies.
|
|
170
|
-
:param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
|
|
171
|
+
:param pulumi.Input[builtins.str] datacenter: The name of a datacenter to which the file will be
|
|
171
172
|
uploaded.
|
|
172
|
-
:param pulumi.Input[str] datastore: The name of the datastore to which to upload the
|
|
173
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore to which to upload the
|
|
173
174
|
file.
|
|
174
|
-
:param pulumi.Input[str] destination_file: The path to where the file should be uploaded
|
|
175
|
+
:param pulumi.Input[builtins.str] destination_file: The path to where the file should be uploaded
|
|
175
176
|
or copied to on the destination `datastore` in vSphere.
|
|
176
|
-
:param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
|
|
177
|
+
:param pulumi.Input[builtins.str] source_datacenter: The name of a datacenter from which the file
|
|
177
178
|
will be copied. Forces a new resource if changed.
|
|
178
|
-
:param pulumi.Input[str] source_datastore: The name of the datastore from which file will
|
|
179
|
+
:param pulumi.Input[builtins.str] source_datastore: The name of the datastore from which file will
|
|
179
180
|
be copied. Forces a new resource if changed.
|
|
180
181
|
"""
|
|
181
182
|
if create_directories is not None:
|
|
@@ -195,7 +196,7 @@ class _FileState:
|
|
|
195
196
|
|
|
196
197
|
@property
|
|
197
198
|
@pulumi.getter(name="createDirectories")
|
|
198
|
-
def create_directories(self) -> Optional[pulumi.Input[bool]]:
|
|
199
|
+
def create_directories(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
199
200
|
"""
|
|
200
201
|
Create directories in `destination_file`
|
|
201
202
|
path parameter on first apply if any are missing for copy operation.
|
|
@@ -207,12 +208,12 @@ class _FileState:
|
|
|
207
208
|
return pulumi.get(self, "create_directories")
|
|
208
209
|
|
|
209
210
|
@create_directories.setter
|
|
210
|
-
def create_directories(self, value: Optional[pulumi.Input[bool]]):
|
|
211
|
+
def create_directories(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
211
212
|
pulumi.set(self, "create_directories", value)
|
|
212
213
|
|
|
213
214
|
@property
|
|
214
215
|
@pulumi.getter
|
|
215
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
216
|
+
def datacenter(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
216
217
|
"""
|
|
217
218
|
The name of a datacenter to which the file will be
|
|
218
219
|
uploaded.
|
|
@@ -220,12 +221,12 @@ class _FileState:
|
|
|
220
221
|
return pulumi.get(self, "datacenter")
|
|
221
222
|
|
|
222
223
|
@datacenter.setter
|
|
223
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
224
|
+
def datacenter(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
224
225
|
pulumi.set(self, "datacenter", value)
|
|
225
226
|
|
|
226
227
|
@property
|
|
227
228
|
@pulumi.getter
|
|
228
|
-
def datastore(self) -> Optional[pulumi.Input[str]]:
|
|
229
|
+
def datastore(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
229
230
|
"""
|
|
230
231
|
The name of the datastore to which to upload the
|
|
231
232
|
file.
|
|
@@ -233,12 +234,12 @@ class _FileState:
|
|
|
233
234
|
return pulumi.get(self, "datastore")
|
|
234
235
|
|
|
235
236
|
@datastore.setter
|
|
236
|
-
def datastore(self, value: Optional[pulumi.Input[str]]):
|
|
237
|
+
def datastore(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
237
238
|
pulumi.set(self, "datastore", value)
|
|
238
239
|
|
|
239
240
|
@property
|
|
240
241
|
@pulumi.getter(name="destinationFile")
|
|
241
|
-
def destination_file(self) -> Optional[pulumi.Input[str]]:
|
|
242
|
+
def destination_file(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
242
243
|
"""
|
|
243
244
|
The path to where the file should be uploaded
|
|
244
245
|
or copied to on the destination `datastore` in vSphere.
|
|
@@ -246,12 +247,12 @@ class _FileState:
|
|
|
246
247
|
return pulumi.get(self, "destination_file")
|
|
247
248
|
|
|
248
249
|
@destination_file.setter
|
|
249
|
-
def destination_file(self, value: Optional[pulumi.Input[str]]):
|
|
250
|
+
def destination_file(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
250
251
|
pulumi.set(self, "destination_file", value)
|
|
251
252
|
|
|
252
253
|
@property
|
|
253
254
|
@pulumi.getter(name="sourceDatacenter")
|
|
254
|
-
def source_datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
255
|
+
def source_datacenter(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
255
256
|
"""
|
|
256
257
|
The name of a datacenter from which the file
|
|
257
258
|
will be copied. Forces a new resource if changed.
|
|
@@ -259,12 +260,12 @@ class _FileState:
|
|
|
259
260
|
return pulumi.get(self, "source_datacenter")
|
|
260
261
|
|
|
261
262
|
@source_datacenter.setter
|
|
262
|
-
def source_datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
263
|
+
def source_datacenter(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
263
264
|
pulumi.set(self, "source_datacenter", value)
|
|
264
265
|
|
|
265
266
|
@property
|
|
266
267
|
@pulumi.getter(name="sourceDatastore")
|
|
267
|
-
def source_datastore(self) -> Optional[pulumi.Input[str]]:
|
|
268
|
+
def source_datastore(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
268
269
|
"""
|
|
269
270
|
The name of the datastore from which file will
|
|
270
271
|
be copied. Forces a new resource if changed.
|
|
@@ -272,31 +273,32 @@ class _FileState:
|
|
|
272
273
|
return pulumi.get(self, "source_datastore")
|
|
273
274
|
|
|
274
275
|
@source_datastore.setter
|
|
275
|
-
def source_datastore(self, value: Optional[pulumi.Input[str]]):
|
|
276
|
+
def source_datastore(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
276
277
|
pulumi.set(self, "source_datastore", value)
|
|
277
278
|
|
|
278
279
|
@property
|
|
279
280
|
@pulumi.getter(name="sourceFile")
|
|
280
|
-
def source_file(self) -> Optional[pulumi.Input[str]]:
|
|
281
|
+
def source_file(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
281
282
|
return pulumi.get(self, "source_file")
|
|
282
283
|
|
|
283
284
|
@source_file.setter
|
|
284
|
-
def source_file(self, value: Optional[pulumi.Input[str]]):
|
|
285
|
+
def source_file(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
285
286
|
pulumi.set(self, "source_file", value)
|
|
286
287
|
|
|
287
288
|
|
|
289
|
+
@pulumi.type_token("vsphere:index/file:File")
|
|
288
290
|
class File(pulumi.CustomResource):
|
|
289
291
|
@overload
|
|
290
292
|
def __init__(__self__,
|
|
291
293
|
resource_name: str,
|
|
292
294
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
293
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
294
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
295
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
296
|
-
destination_file: Optional[pulumi.Input[str]] = None,
|
|
297
|
-
source_datacenter: Optional[pulumi.Input[str]] = None,
|
|
298
|
-
source_datastore: Optional[pulumi.Input[str]] = None,
|
|
299
|
-
source_file: Optional[pulumi.Input[str]] = None,
|
|
295
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
296
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
297
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
298
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
299
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
300
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
301
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
300
302
|
__props__=None):
|
|
301
303
|
"""
|
|
302
304
|
## Example Usage
|
|
@@ -333,21 +335,21 @@ class File(pulumi.CustomResource):
|
|
|
333
335
|
|
|
334
336
|
:param str resource_name: The name of the resource.
|
|
335
337
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
336
|
-
:param pulumi.Input[bool] create_directories: Create directories in `destination_file`
|
|
338
|
+
:param pulumi.Input[builtins.bool] create_directories: Create directories in `destination_file`
|
|
337
339
|
path parameter on first apply if any are missing for copy operation.
|
|
338
340
|
|
|
339
341
|
> **NOTE:** Any directory created as part of the `create_directories` argument
|
|
340
342
|
will not be deleted when the resource is destroyed. New directories are not
|
|
341
343
|
created if the `destination_file` path is changed in subsequent applies.
|
|
342
|
-
:param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
|
|
344
|
+
:param pulumi.Input[builtins.str] datacenter: The name of a datacenter to which the file will be
|
|
343
345
|
uploaded.
|
|
344
|
-
:param pulumi.Input[str] datastore: The name of the datastore to which to upload the
|
|
346
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore to which to upload the
|
|
345
347
|
file.
|
|
346
|
-
:param pulumi.Input[str] destination_file: The path to where the file should be uploaded
|
|
348
|
+
:param pulumi.Input[builtins.str] destination_file: The path to where the file should be uploaded
|
|
347
349
|
or copied to on the destination `datastore` in vSphere.
|
|
348
|
-
:param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
|
|
350
|
+
:param pulumi.Input[builtins.str] source_datacenter: The name of a datacenter from which the file
|
|
349
351
|
will be copied. Forces a new resource if changed.
|
|
350
|
-
:param pulumi.Input[str] source_datastore: The name of the datastore from which file will
|
|
352
|
+
:param pulumi.Input[builtins.str] source_datastore: The name of the datastore from which file will
|
|
351
353
|
be copied. Forces a new resource if changed.
|
|
352
354
|
"""
|
|
353
355
|
...
|
|
@@ -404,13 +406,13 @@ class File(pulumi.CustomResource):
|
|
|
404
406
|
def _internal_init(__self__,
|
|
405
407
|
resource_name: str,
|
|
406
408
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
407
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
408
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
409
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
410
|
-
destination_file: Optional[pulumi.Input[str]] = None,
|
|
411
|
-
source_datacenter: Optional[pulumi.Input[str]] = None,
|
|
412
|
-
source_datastore: Optional[pulumi.Input[str]] = None,
|
|
413
|
-
source_file: Optional[pulumi.Input[str]] = None,
|
|
409
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
410
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
411
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
412
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
413
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
414
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
415
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
414
416
|
__props__=None):
|
|
415
417
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
416
418
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -443,13 +445,13 @@ class File(pulumi.CustomResource):
|
|
|
443
445
|
def get(resource_name: str,
|
|
444
446
|
id: pulumi.Input[str],
|
|
445
447
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
446
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
447
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
448
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
449
|
-
destination_file: Optional[pulumi.Input[str]] = None,
|
|
450
|
-
source_datacenter: Optional[pulumi.Input[str]] = None,
|
|
451
|
-
source_datastore: Optional[pulumi.Input[str]] = None,
|
|
452
|
-
source_file: Optional[pulumi.Input[str]] = None) -> 'File':
|
|
448
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
449
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
450
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
451
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
452
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
453
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
454
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None) -> 'File':
|
|
453
455
|
"""
|
|
454
456
|
Get an existing File resource's state with the given name, id, and optional extra
|
|
455
457
|
properties used to qualify the lookup.
|
|
@@ -457,21 +459,21 @@ class File(pulumi.CustomResource):
|
|
|
457
459
|
:param str resource_name: The unique name of the resulting resource.
|
|
458
460
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
459
461
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
460
|
-
:param pulumi.Input[bool] create_directories: Create directories in `destination_file`
|
|
462
|
+
:param pulumi.Input[builtins.bool] create_directories: Create directories in `destination_file`
|
|
461
463
|
path parameter on first apply if any are missing for copy operation.
|
|
462
464
|
|
|
463
465
|
> **NOTE:** Any directory created as part of the `create_directories` argument
|
|
464
466
|
will not be deleted when the resource is destroyed. New directories are not
|
|
465
467
|
created if the `destination_file` path is changed in subsequent applies.
|
|
466
|
-
:param pulumi.Input[str] datacenter: The name of a datacenter to which the file will be
|
|
468
|
+
:param pulumi.Input[builtins.str] datacenter: The name of a datacenter to which the file will be
|
|
467
469
|
uploaded.
|
|
468
|
-
:param pulumi.Input[str] datastore: The name of the datastore to which to upload the
|
|
470
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore to which to upload the
|
|
469
471
|
file.
|
|
470
|
-
:param pulumi.Input[str] destination_file: The path to where the file should be uploaded
|
|
472
|
+
:param pulumi.Input[builtins.str] destination_file: The path to where the file should be uploaded
|
|
471
473
|
or copied to on the destination `datastore` in vSphere.
|
|
472
|
-
:param pulumi.Input[str] source_datacenter: The name of a datacenter from which the file
|
|
474
|
+
:param pulumi.Input[builtins.str] source_datacenter: The name of a datacenter from which the file
|
|
473
475
|
will be copied. Forces a new resource if changed.
|
|
474
|
-
:param pulumi.Input[str] source_datastore: The name of the datastore from which file will
|
|
476
|
+
:param pulumi.Input[builtins.str] source_datastore: The name of the datastore from which file will
|
|
475
477
|
be copied. Forces a new resource if changed.
|
|
476
478
|
"""
|
|
477
479
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -489,7 +491,7 @@ class File(pulumi.CustomResource):
|
|
|
489
491
|
|
|
490
492
|
@property
|
|
491
493
|
@pulumi.getter(name="createDirectories")
|
|
492
|
-
def create_directories(self) -> pulumi.Output[Optional[bool]]:
|
|
494
|
+
def create_directories(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
493
495
|
"""
|
|
494
496
|
Create directories in `destination_file`
|
|
495
497
|
path parameter on first apply if any are missing for copy operation.
|
|
@@ -502,7 +504,7 @@ class File(pulumi.CustomResource):
|
|
|
502
504
|
|
|
503
505
|
@property
|
|
504
506
|
@pulumi.getter
|
|
505
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
507
|
+
def datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
506
508
|
"""
|
|
507
509
|
The name of a datacenter to which the file will be
|
|
508
510
|
uploaded.
|
|
@@ -511,7 +513,7 @@ class File(pulumi.CustomResource):
|
|
|
511
513
|
|
|
512
514
|
@property
|
|
513
515
|
@pulumi.getter
|
|
514
|
-
def datastore(self) -> pulumi.Output[str]:
|
|
516
|
+
def datastore(self) -> pulumi.Output[builtins.str]:
|
|
515
517
|
"""
|
|
516
518
|
The name of the datastore to which to upload the
|
|
517
519
|
file.
|
|
@@ -520,7 +522,7 @@ class File(pulumi.CustomResource):
|
|
|
520
522
|
|
|
521
523
|
@property
|
|
522
524
|
@pulumi.getter(name="destinationFile")
|
|
523
|
-
def destination_file(self) -> pulumi.Output[str]:
|
|
525
|
+
def destination_file(self) -> pulumi.Output[builtins.str]:
|
|
524
526
|
"""
|
|
525
527
|
The path to where the file should be uploaded
|
|
526
528
|
or copied to on the destination `datastore` in vSphere.
|
|
@@ -529,7 +531,7 @@ class File(pulumi.CustomResource):
|
|
|
529
531
|
|
|
530
532
|
@property
|
|
531
533
|
@pulumi.getter(name="sourceDatacenter")
|
|
532
|
-
def source_datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
534
|
+
def source_datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
533
535
|
"""
|
|
534
536
|
The name of a datacenter from which the file
|
|
535
537
|
will be copied. Forces a new resource if changed.
|
|
@@ -538,7 +540,7 @@ class File(pulumi.CustomResource):
|
|
|
538
540
|
|
|
539
541
|
@property
|
|
540
542
|
@pulumi.getter(name="sourceDatastore")
|
|
541
|
-
def source_datastore(self) -> pulumi.Output[Optional[str]]:
|
|
543
|
+
def source_datastore(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
542
544
|
"""
|
|
543
545
|
The name of the datastore from which file will
|
|
544
546
|
be copied. Forces a new resource if changed.
|
|
@@ -547,6 +549,6 @@ class File(pulumi.CustomResource):
|
|
|
547
549
|
|
|
548
550
|
@property
|
|
549
551
|
@pulumi.getter(name="sourceFile")
|
|
550
|
-
def source_file(self) -> pulumi.Output[str]:
|
|
552
|
+
def source_file(self) -> pulumi.Output[builtins.str]:
|
|
551
553
|
return pulumi.get(self, "source_file")
|
|
552
554
|
|