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