pulumi-vsphere 4.14.0a1741243116__py3-none-any.whl → 4.14.0a1745952392__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 +921 -917
- pulumi_vsphere/compute_cluster_host_group.py +46 -42
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +74 -70
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +74 -70
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +88 -84
- pulumi_vsphere/compute_cluster_vm_group.py +46 -42
- pulumi_vsphere/compute_cluster_vm_host_rule.py +102 -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 +46 -42
- pulumi_vsphere/content_library_item.py +88 -84
- pulumi_vsphere/custom_attribute.py +32 -28
- pulumi_vsphere/datacenter.py +67 -63
- pulumi_vsphere/datastore_cluster.py +354 -350
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +74 -70
- pulumi_vsphere/distributed_port_group.py +648 -644
- pulumi_vsphere/distributed_virtual_switch.py +1285 -1281
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +60 -56
- pulumi_vsphere/dpm_host_override.py +60 -56
- pulumi_vsphere/drs_vm_override.py +60 -56
- pulumi_vsphere/entity_permissions.py +32 -28
- pulumi_vsphere/file.py +98 -94
- pulumi_vsphere/folder.py +74 -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 +60 -56
- pulumi_vsphere/ha_vm_override.py +214 -210
- pulumi_vsphere/host.py +200 -196
- pulumi_vsphere/host_port_group.py +256 -252
- pulumi_vsphere/host_virtual_switch.py +298 -294
- pulumi_vsphere/license.py +60 -56
- pulumi_vsphere/nas_datastore.py +214 -210
- pulumi_vsphere/offline_software_depot.py +18 -14
- pulumi_vsphere/outputs.py +721 -720
- pulumi_vsphere/provider.py +101 -97
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +214 -210
- pulumi_vsphere/role.py +39 -35
- pulumi_vsphere/storage_drs_vm_override.py +74 -70
- pulumi_vsphere/supervisor.py +158 -154
- pulumi_vsphere/tag.py +46 -42
- pulumi_vsphere/tag_category.py +60 -56
- pulumi_vsphere/vapp_container.py +214 -210
- pulumi_vsphere/vapp_entity.py +144 -140
- pulumi_vsphere/virtual_disk.py +102 -98
- pulumi_vsphere/virtual_machine.py +1043 -1039
- pulumi_vsphere/virtual_machine_class.py +88 -84
- pulumi_vsphere/virtual_machine_snapshot.py +102 -98
- pulumi_vsphere/vm_storage_policy.py +32 -28
- pulumi_vsphere/vmfs_datastore.py +151 -147
- pulumi_vsphere/vnic.py +116 -112
- {pulumi_vsphere-4.14.0a1741243116.dist-info → pulumi_vsphere-4.14.0a1745952392.dist-info}/METADATA +2 -2
- pulumi_vsphere-4.14.0a1745952392.dist-info/RECORD +87 -0
- {pulumi_vsphere-4.14.0a1741243116.dist-info → pulumi_vsphere-4.14.0a1745952392.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1741243116.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1741243116.dist-info → pulumi_vsphere-4.14.0a1745952392.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,34 @@ 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
|
|
|
288
289
|
class File(pulumi.CustomResource):
|
|
290
|
+
|
|
291
|
+
pulumi_type = "vsphere:index/file:File"
|
|
292
|
+
|
|
289
293
|
@overload
|
|
290
294
|
def __init__(__self__,
|
|
291
295
|
resource_name: str,
|
|
292
296
|
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,
|
|
297
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
298
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
299
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
300
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
301
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
302
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
303
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
300
304
|
__props__=None):
|
|
301
305
|
"""
|
|
302
306
|
## Example Usage
|
|
@@ -333,21 +337,21 @@ class File(pulumi.CustomResource):
|
|
|
333
337
|
|
|
334
338
|
:param str resource_name: The name of the resource.
|
|
335
339
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
336
|
-
:param pulumi.Input[bool] create_directories: Create directories in `destination_file`
|
|
340
|
+
:param pulumi.Input[builtins.bool] create_directories: Create directories in `destination_file`
|
|
337
341
|
path parameter on first apply if any are missing for copy operation.
|
|
338
342
|
|
|
339
343
|
> **NOTE:** Any directory created as part of the `create_directories` argument
|
|
340
344
|
will not be deleted when the resource is destroyed. New directories are not
|
|
341
345
|
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
|
|
346
|
+
:param pulumi.Input[builtins.str] datacenter: The name of a datacenter to which the file will be
|
|
343
347
|
uploaded.
|
|
344
|
-
:param pulumi.Input[str] datastore: The name of the datastore to which to upload the
|
|
348
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore to which to upload the
|
|
345
349
|
file.
|
|
346
|
-
:param pulumi.Input[str] destination_file: The path to where the file should be uploaded
|
|
350
|
+
:param pulumi.Input[builtins.str] destination_file: The path to where the file should be uploaded
|
|
347
351
|
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
|
|
352
|
+
:param pulumi.Input[builtins.str] source_datacenter: The name of a datacenter from which the file
|
|
349
353
|
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
|
|
354
|
+
:param pulumi.Input[builtins.str] source_datastore: The name of the datastore from which file will
|
|
351
355
|
be copied. Forces a new resource if changed.
|
|
352
356
|
"""
|
|
353
357
|
...
|
|
@@ -404,13 +408,13 @@ class File(pulumi.CustomResource):
|
|
|
404
408
|
def _internal_init(__self__,
|
|
405
409
|
resource_name: str,
|
|
406
410
|
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,
|
|
411
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
412
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
413
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
414
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
415
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
416
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
417
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
414
418
|
__props__=None):
|
|
415
419
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
416
420
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -443,13 +447,13 @@ class File(pulumi.CustomResource):
|
|
|
443
447
|
def get(resource_name: str,
|
|
444
448
|
id: pulumi.Input[str],
|
|
445
449
|
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':
|
|
450
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
451
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
452
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
453
|
+
destination_file: Optional[pulumi.Input[builtins.str]] = None,
|
|
454
|
+
source_datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
455
|
+
source_datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
456
|
+
source_file: Optional[pulumi.Input[builtins.str]] = None) -> 'File':
|
|
453
457
|
"""
|
|
454
458
|
Get an existing File resource's state with the given name, id, and optional extra
|
|
455
459
|
properties used to qualify the lookup.
|
|
@@ -457,21 +461,21 @@ class File(pulumi.CustomResource):
|
|
|
457
461
|
:param str resource_name: The unique name of the resulting resource.
|
|
458
462
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
459
463
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
460
|
-
:param pulumi.Input[bool] create_directories: Create directories in `destination_file`
|
|
464
|
+
:param pulumi.Input[builtins.bool] create_directories: Create directories in `destination_file`
|
|
461
465
|
path parameter on first apply if any are missing for copy operation.
|
|
462
466
|
|
|
463
467
|
> **NOTE:** Any directory created as part of the `create_directories` argument
|
|
464
468
|
will not be deleted when the resource is destroyed. New directories are not
|
|
465
469
|
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
|
|
470
|
+
:param pulumi.Input[builtins.str] datacenter: The name of a datacenter to which the file will be
|
|
467
471
|
uploaded.
|
|
468
|
-
:param pulumi.Input[str] datastore: The name of the datastore to which to upload the
|
|
472
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore to which to upload the
|
|
469
473
|
file.
|
|
470
|
-
:param pulumi.Input[str] destination_file: The path to where the file should be uploaded
|
|
474
|
+
:param pulumi.Input[builtins.str] destination_file: The path to where the file should be uploaded
|
|
471
475
|
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
|
|
476
|
+
:param pulumi.Input[builtins.str] source_datacenter: The name of a datacenter from which the file
|
|
473
477
|
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
|
|
478
|
+
:param pulumi.Input[builtins.str] source_datastore: The name of the datastore from which file will
|
|
475
479
|
be copied. Forces a new resource if changed.
|
|
476
480
|
"""
|
|
477
481
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -489,7 +493,7 @@ class File(pulumi.CustomResource):
|
|
|
489
493
|
|
|
490
494
|
@property
|
|
491
495
|
@pulumi.getter(name="createDirectories")
|
|
492
|
-
def create_directories(self) -> pulumi.Output[Optional[bool]]:
|
|
496
|
+
def create_directories(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
493
497
|
"""
|
|
494
498
|
Create directories in `destination_file`
|
|
495
499
|
path parameter on first apply if any are missing for copy operation.
|
|
@@ -502,7 +506,7 @@ class File(pulumi.CustomResource):
|
|
|
502
506
|
|
|
503
507
|
@property
|
|
504
508
|
@pulumi.getter
|
|
505
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
509
|
+
def datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
506
510
|
"""
|
|
507
511
|
The name of a datacenter to which the file will be
|
|
508
512
|
uploaded.
|
|
@@ -511,7 +515,7 @@ class File(pulumi.CustomResource):
|
|
|
511
515
|
|
|
512
516
|
@property
|
|
513
517
|
@pulumi.getter
|
|
514
|
-
def datastore(self) -> pulumi.Output[str]:
|
|
518
|
+
def datastore(self) -> pulumi.Output[builtins.str]:
|
|
515
519
|
"""
|
|
516
520
|
The name of the datastore to which to upload the
|
|
517
521
|
file.
|
|
@@ -520,7 +524,7 @@ class File(pulumi.CustomResource):
|
|
|
520
524
|
|
|
521
525
|
@property
|
|
522
526
|
@pulumi.getter(name="destinationFile")
|
|
523
|
-
def destination_file(self) -> pulumi.Output[str]:
|
|
527
|
+
def destination_file(self) -> pulumi.Output[builtins.str]:
|
|
524
528
|
"""
|
|
525
529
|
The path to where the file should be uploaded
|
|
526
530
|
or copied to on the destination `datastore` in vSphere.
|
|
@@ -529,7 +533,7 @@ class File(pulumi.CustomResource):
|
|
|
529
533
|
|
|
530
534
|
@property
|
|
531
535
|
@pulumi.getter(name="sourceDatacenter")
|
|
532
|
-
def source_datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
536
|
+
def source_datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
533
537
|
"""
|
|
534
538
|
The name of a datacenter from which the file
|
|
535
539
|
will be copied. Forces a new resource if changed.
|
|
@@ -538,7 +542,7 @@ class File(pulumi.CustomResource):
|
|
|
538
542
|
|
|
539
543
|
@property
|
|
540
544
|
@pulumi.getter(name="sourceDatastore")
|
|
541
|
-
def source_datastore(self) -> pulumi.Output[Optional[str]]:
|
|
545
|
+
def source_datastore(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
542
546
|
"""
|
|
543
547
|
The name of the datastore from which file will
|
|
544
548
|
be copied. Forces a new resource if changed.
|
|
@@ -547,6 +551,6 @@ class File(pulumi.CustomResource):
|
|
|
547
551
|
|
|
548
552
|
@property
|
|
549
553
|
@pulumi.getter(name="sourceFile")
|
|
550
|
-
def source_file(self) -> pulumi.Output[str]:
|
|
554
|
+
def source_file(self) -> pulumi.Output[builtins.str]:
|
|
551
555
|
return pulumi.get(self, "source_file")
|
|
552
556
|
|