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.

Files changed (89) hide show
  1. pulumi_vsphere/__init__.py +12 -1
  2. pulumi_vsphere/_inputs.py +1172 -1172
  3. pulumi_vsphere/_utilities.py +1 -1
  4. pulumi_vsphere/compute_cluster.py +1226 -1484
  5. pulumi_vsphere/compute_cluster_host_group.py +124 -53
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
  9. pulumi_vsphere/compute_cluster_vm_group.py +58 -53
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
  11. pulumi_vsphere/config/__init__.py +2 -1
  12. pulumi_vsphere/config/__init__.pyi +2 -2
  13. pulumi_vsphere/config/vars.py +15 -15
  14. pulumi_vsphere/configuration_profile.py +286 -0
  15. pulumi_vsphere/content_library.py +64 -59
  16. pulumi_vsphere/content_library_item.py +109 -104
  17. pulumi_vsphere/custom_attribute.py +41 -36
  18. pulumi_vsphere/datacenter.py +80 -79
  19. pulumi_vsphere/datastore_cluster.py +531 -477
  20. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
  21. pulumi_vsphere/distributed_port_group.py +802 -818
  22. pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
  23. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
  24. pulumi_vsphere/dpm_host_override.py +159 -70
  25. pulumi_vsphere/drs_vm_override.py +75 -70
  26. pulumi_vsphere/entity_permissions.py +40 -39
  27. pulumi_vsphere/file.py +148 -162
  28. pulumi_vsphere/folder.py +104 -99
  29. pulumi_vsphere/get_compute_cluster.py +18 -18
  30. pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
  31. pulumi_vsphere/get_configuration_profile.py +145 -0
  32. pulumi_vsphere/get_content_library.py +10 -10
  33. pulumi_vsphere/get_content_library_item.py +22 -22
  34. pulumi_vsphere/get_custom_attribute.py +12 -12
  35. pulumi_vsphere/get_datacenter.py +12 -12
  36. pulumi_vsphere/get_datastore.py +22 -22
  37. pulumi_vsphere/get_datastore_cluster.py +19 -19
  38. pulumi_vsphere/get_datastore_stats.py +22 -26
  39. pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
  40. pulumi_vsphere/get_dynamic.py +22 -26
  41. pulumi_vsphere/get_folder.py +140 -18
  42. pulumi_vsphere/get_guest_os_customization.py +74 -21
  43. pulumi_vsphere/get_host.py +18 -18
  44. pulumi_vsphere/get_host_base_images.py +6 -6
  45. pulumi_vsphere/get_host_pci_device.py +30 -30
  46. pulumi_vsphere/get_host_thumbprint.py +22 -22
  47. pulumi_vsphere/get_host_vgpu_profile.py +17 -17
  48. pulumi_vsphere/get_license.py +26 -24
  49. pulumi_vsphere/get_network.py +80 -29
  50. pulumi_vsphere/get_ovf_vm_template.py +126 -126
  51. pulumi_vsphere/get_policy.py +10 -10
  52. pulumi_vsphere/get_resource_pool.py +77 -26
  53. pulumi_vsphere/get_role.py +26 -26
  54. pulumi_vsphere/get_tag.py +18 -18
  55. pulumi_vsphere/get_tag_category.py +16 -16
  56. pulumi_vsphere/get_vapp_container.py +16 -16
  57. pulumi_vsphere/get_virtual_machine.py +273 -273
  58. pulumi_vsphere/get_vmfs_disks.py +24 -24
  59. pulumi_vsphere/guest_os_customization.py +75 -74
  60. pulumi_vsphere/ha_vm_override.py +295 -374
  61. pulumi_vsphere/host.py +304 -249
  62. pulumi_vsphere/host_port_group.py +321 -341
  63. pulumi_vsphere/host_virtual_switch.py +373 -389
  64. pulumi_vsphere/license.py +125 -84
  65. pulumi_vsphere/nas_datastore.py +324 -261
  66. pulumi_vsphere/offline_software_depot.py +26 -21
  67. pulumi_vsphere/outputs.py +1003 -970
  68. pulumi_vsphere/provider.py +165 -146
  69. pulumi_vsphere/pulumi-plugin.json +1 -1
  70. pulumi_vsphere/resource_pool.py +691 -364
  71. pulumi_vsphere/role.py +46 -45
  72. pulumi_vsphere/storage_drs_vm_override.py +92 -87
  73. pulumi_vsphere/supervisor.py +210 -209
  74. pulumi_vsphere/tag.py +58 -53
  75. pulumi_vsphere/tag_category.py +75 -70
  76. pulumi_vsphere/vapp_container.py +262 -257
  77. pulumi_vsphere/vapp_entity.py +177 -172
  78. pulumi_vsphere/virtual_disk.py +130 -125
  79. pulumi_vsphere/virtual_machine.py +1339 -1443
  80. pulumi_vsphere/virtual_machine_class.py +109 -108
  81. pulumi_vsphere/virtual_machine_snapshot.py +122 -121
  82. pulumi_vsphere/vm_storage_policy.py +40 -39
  83. pulumi_vsphere/vmfs_datastore.py +189 -184
  84. pulumi_vsphere/vnic.py +145 -144
  85. {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
  86. pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
  87. {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
  88. pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
  89. {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -19,20 +19,20 @@ __all__ = ['ContentLibraryItemArgs', 'ContentLibraryItem']
19
19
  @pulumi.input_type
20
20
  class ContentLibraryItemArgs:
21
21
  def __init__(__self__, *,
22
- library_id: pulumi.Input[str],
23
- description: Optional[pulumi.Input[str]] = None,
24
- file_url: Optional[pulumi.Input[str]] = None,
25
- name: Optional[pulumi.Input[str]] = None,
26
- source_uuid: Optional[pulumi.Input[str]] = None,
27
- type: Optional[pulumi.Input[str]] = None):
22
+ library_id: pulumi.Input[_builtins.str],
23
+ description: Optional[pulumi.Input[_builtins.str]] = None,
24
+ file_url: Optional[pulumi.Input[_builtins.str]] = None,
25
+ name: Optional[pulumi.Input[_builtins.str]] = None,
26
+ source_uuid: Optional[pulumi.Input[_builtins.str]] = None,
27
+ type: Optional[pulumi.Input[_builtins.str]] = None):
28
28
  """
29
29
  The set of arguments for constructing a ContentLibraryItem resource.
30
- :param pulumi.Input[str] library_id: The ID of the content library in which to create the item.
31
- :param pulumi.Input[str] description: A description for the content library item.
32
- :param pulumi.Input[str] file_url: File to import as the content library item.
33
- :param pulumi.Input[str] name: The name of the item to be created in the content library.
34
- :param pulumi.Input[str] source_uuid: Virtual machine UUID to clone to content library.
35
- :param pulumi.Input[str] type: Type of content library item.
30
+ :param pulumi.Input[_builtins.str] library_id: The ID of the content library in which to create the item.
31
+ :param pulumi.Input[_builtins.str] description: A description for the content library item.
32
+ :param pulumi.Input[_builtins.str] file_url: File to import as the content library item.
33
+ :param pulumi.Input[_builtins.str] name: The name of the item to be created in the content library.
34
+ :param pulumi.Input[_builtins.str] source_uuid: Virtual machine UUID to clone to content library.
35
+ :param pulumi.Input[_builtins.str] type: Type of content library item.
36
36
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
37
37
  """
38
38
  pulumi.set(__self__, "library_id", library_id)
@@ -47,69 +47,69 @@ class ContentLibraryItemArgs:
47
47
  if type is not None:
48
48
  pulumi.set(__self__, "type", type)
49
49
 
50
- @property
50
+ @_builtins.property
51
51
  @pulumi.getter(name="libraryId")
52
- def library_id(self) -> pulumi.Input[str]:
52
+ def library_id(self) -> pulumi.Input[_builtins.str]:
53
53
  """
54
54
  The ID of the content library in which to create the item.
55
55
  """
56
56
  return pulumi.get(self, "library_id")
57
57
 
58
58
  @library_id.setter
59
- def library_id(self, value: pulumi.Input[str]):
59
+ def library_id(self, value: pulumi.Input[_builtins.str]):
60
60
  pulumi.set(self, "library_id", value)
61
61
 
62
- @property
62
+ @_builtins.property
63
63
  @pulumi.getter
64
- def description(self) -> Optional[pulumi.Input[str]]:
64
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
65
65
  """
66
66
  A description for the content library item.
67
67
  """
68
68
  return pulumi.get(self, "description")
69
69
 
70
70
  @description.setter
71
- def description(self, value: Optional[pulumi.Input[str]]):
71
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
72
72
  pulumi.set(self, "description", value)
73
73
 
74
- @property
74
+ @_builtins.property
75
75
  @pulumi.getter(name="fileUrl")
76
- def file_url(self) -> Optional[pulumi.Input[str]]:
76
+ def file_url(self) -> Optional[pulumi.Input[_builtins.str]]:
77
77
  """
78
78
  File to import as the content library item.
79
79
  """
80
80
  return pulumi.get(self, "file_url")
81
81
 
82
82
  @file_url.setter
83
- def file_url(self, value: Optional[pulumi.Input[str]]):
83
+ def file_url(self, value: Optional[pulumi.Input[_builtins.str]]):
84
84
  pulumi.set(self, "file_url", value)
85
85
 
86
- @property
86
+ @_builtins.property
87
87
  @pulumi.getter
88
- def name(self) -> Optional[pulumi.Input[str]]:
88
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
89
89
  """
90
90
  The name of the item to be created in the content library.
91
91
  """
92
92
  return pulumi.get(self, "name")
93
93
 
94
94
  @name.setter
95
- def name(self, value: Optional[pulumi.Input[str]]):
95
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
96
96
  pulumi.set(self, "name", value)
97
97
 
98
- @property
98
+ @_builtins.property
99
99
  @pulumi.getter(name="sourceUuid")
100
- def source_uuid(self) -> Optional[pulumi.Input[str]]:
100
+ def source_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
101
101
  """
102
102
  Virtual machine UUID to clone to content library.
103
103
  """
104
104
  return pulumi.get(self, "source_uuid")
105
105
 
106
106
  @source_uuid.setter
107
- def source_uuid(self, value: Optional[pulumi.Input[str]]):
107
+ def source_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
108
108
  pulumi.set(self, "source_uuid", value)
109
109
 
110
- @property
110
+ @_builtins.property
111
111
  @pulumi.getter
112
- def type(self) -> Optional[pulumi.Input[str]]:
112
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
113
113
  """
114
114
  Type of content library item.
115
115
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
@@ -117,27 +117,27 @@ class ContentLibraryItemArgs:
117
117
  return pulumi.get(self, "type")
118
118
 
119
119
  @type.setter
120
- def type(self, value: Optional[pulumi.Input[str]]):
120
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
121
121
  pulumi.set(self, "type", value)
122
122
 
123
123
 
124
124
  @pulumi.input_type
125
125
  class _ContentLibraryItemState:
126
126
  def __init__(__self__, *,
127
- description: Optional[pulumi.Input[str]] = None,
128
- file_url: Optional[pulumi.Input[str]] = None,
129
- library_id: Optional[pulumi.Input[str]] = None,
130
- name: Optional[pulumi.Input[str]] = None,
131
- source_uuid: Optional[pulumi.Input[str]] = None,
132
- type: Optional[pulumi.Input[str]] = None):
127
+ description: Optional[pulumi.Input[_builtins.str]] = None,
128
+ file_url: Optional[pulumi.Input[_builtins.str]] = None,
129
+ library_id: Optional[pulumi.Input[_builtins.str]] = None,
130
+ name: Optional[pulumi.Input[_builtins.str]] = None,
131
+ source_uuid: Optional[pulumi.Input[_builtins.str]] = None,
132
+ type: Optional[pulumi.Input[_builtins.str]] = None):
133
133
  """
134
134
  Input properties used for looking up and filtering ContentLibraryItem resources.
135
- :param pulumi.Input[str] description: A description for the content library item.
136
- :param pulumi.Input[str] file_url: File to import as the content library item.
137
- :param pulumi.Input[str] library_id: The ID of the content library in which to create the item.
138
- :param pulumi.Input[str] name: The name of the item to be created in the content library.
139
- :param pulumi.Input[str] source_uuid: Virtual machine UUID to clone to content library.
140
- :param pulumi.Input[str] type: Type of content library item.
135
+ :param pulumi.Input[_builtins.str] description: A description for the content library item.
136
+ :param pulumi.Input[_builtins.str] file_url: File to import as the content library item.
137
+ :param pulumi.Input[_builtins.str] library_id: The ID of the content library in which to create the item.
138
+ :param pulumi.Input[_builtins.str] name: The name of the item to be created in the content library.
139
+ :param pulumi.Input[_builtins.str] source_uuid: Virtual machine UUID to clone to content library.
140
+ :param pulumi.Input[_builtins.str] type: Type of content library item.
141
141
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
142
142
  """
143
143
  if description is not None:
@@ -153,69 +153,69 @@ class _ContentLibraryItemState:
153
153
  if type is not None:
154
154
  pulumi.set(__self__, "type", type)
155
155
 
156
- @property
156
+ @_builtins.property
157
157
  @pulumi.getter
158
- def description(self) -> Optional[pulumi.Input[str]]:
158
+ def description(self) -> Optional[pulumi.Input[_builtins.str]]:
159
159
  """
160
160
  A description for the content library item.
161
161
  """
162
162
  return pulumi.get(self, "description")
163
163
 
164
164
  @description.setter
165
- def description(self, value: Optional[pulumi.Input[str]]):
165
+ def description(self, value: Optional[pulumi.Input[_builtins.str]]):
166
166
  pulumi.set(self, "description", value)
167
167
 
168
- @property
168
+ @_builtins.property
169
169
  @pulumi.getter(name="fileUrl")
170
- def file_url(self) -> Optional[pulumi.Input[str]]:
170
+ def file_url(self) -> Optional[pulumi.Input[_builtins.str]]:
171
171
  """
172
172
  File to import as the content library item.
173
173
  """
174
174
  return pulumi.get(self, "file_url")
175
175
 
176
176
  @file_url.setter
177
- def file_url(self, value: Optional[pulumi.Input[str]]):
177
+ def file_url(self, value: Optional[pulumi.Input[_builtins.str]]):
178
178
  pulumi.set(self, "file_url", value)
179
179
 
180
- @property
180
+ @_builtins.property
181
181
  @pulumi.getter(name="libraryId")
182
- def library_id(self) -> Optional[pulumi.Input[str]]:
182
+ def library_id(self) -> Optional[pulumi.Input[_builtins.str]]:
183
183
  """
184
184
  The ID of the content library in which to create the item.
185
185
  """
186
186
  return pulumi.get(self, "library_id")
187
187
 
188
188
  @library_id.setter
189
- def library_id(self, value: Optional[pulumi.Input[str]]):
189
+ def library_id(self, value: Optional[pulumi.Input[_builtins.str]]):
190
190
  pulumi.set(self, "library_id", value)
191
191
 
192
- @property
192
+ @_builtins.property
193
193
  @pulumi.getter
194
- def name(self) -> Optional[pulumi.Input[str]]:
194
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
195
195
  """
196
196
  The name of the item to be created in the content library.
197
197
  """
198
198
  return pulumi.get(self, "name")
199
199
 
200
200
  @name.setter
201
- def name(self, value: Optional[pulumi.Input[str]]):
201
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
202
202
  pulumi.set(self, "name", value)
203
203
 
204
- @property
204
+ @_builtins.property
205
205
  @pulumi.getter(name="sourceUuid")
206
- def source_uuid(self) -> Optional[pulumi.Input[str]]:
206
+ def source_uuid(self) -> Optional[pulumi.Input[_builtins.str]]:
207
207
  """
208
208
  Virtual machine UUID to clone to content library.
209
209
  """
210
210
  return pulumi.get(self, "source_uuid")
211
211
 
212
212
  @source_uuid.setter
213
- def source_uuid(self, value: Optional[pulumi.Input[str]]):
213
+ def source_uuid(self, value: Optional[pulumi.Input[_builtins.str]]):
214
214
  pulumi.set(self, "source_uuid", value)
215
215
 
216
- @property
216
+ @_builtins.property
217
217
  @pulumi.getter
218
- def type(self) -> Optional[pulumi.Input[str]]:
218
+ def type(self) -> Optional[pulumi.Input[_builtins.str]]:
219
219
  """
220
220
  Type of content library item.
221
221
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
@@ -223,21 +223,22 @@ class _ContentLibraryItemState:
223
223
  return pulumi.get(self, "type")
224
224
 
225
225
  @type.setter
226
- def type(self, value: Optional[pulumi.Input[str]]):
226
+ def type(self, value: Optional[pulumi.Input[_builtins.str]]):
227
227
  pulumi.set(self, "type", value)
228
228
 
229
229
 
230
+ @pulumi.type_token("vsphere:index/contentLibraryItem:ContentLibraryItem")
230
231
  class ContentLibraryItem(pulumi.CustomResource):
231
232
  @overload
232
233
  def __init__(__self__,
233
234
  resource_name: str,
234
235
  opts: Optional[pulumi.ResourceOptions] = None,
235
- description: Optional[pulumi.Input[str]] = None,
236
- file_url: Optional[pulumi.Input[str]] = None,
237
- library_id: Optional[pulumi.Input[str]] = None,
238
- name: Optional[pulumi.Input[str]] = None,
239
- source_uuid: Optional[pulumi.Input[str]] = None,
240
- type: Optional[pulumi.Input[str]] = None,
236
+ description: Optional[pulumi.Input[_builtins.str]] = None,
237
+ file_url: Optional[pulumi.Input[_builtins.str]] = None,
238
+ library_id: Optional[pulumi.Input[_builtins.str]] = None,
239
+ name: Optional[pulumi.Input[_builtins.str]] = None,
240
+ source_uuid: Optional[pulumi.Input[_builtins.str]] = None,
241
+ type: Optional[pulumi.Input[_builtins.str]] = None,
241
242
  __props__=None):
242
243
  """
243
244
  The `ContentLibraryItem` resource can be used to create items in a
@@ -305,18 +306,20 @@ class ContentLibraryItem(pulumi.CustomResource):
305
306
 
306
307
  supplying the content library ID. An example is below:
307
308
 
309
+ [docs-import]: https://developer.hashicorp.com/terraform/cli/import
310
+
308
311
  ```sh
309
312
  $ pulumi import vsphere:index/contentLibraryItem:ContentLibraryItem vsphere_content_library_item iso-linux-ubuntu-server-lts xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
310
313
  ```
311
314
 
312
315
  :param str resource_name: The name of the resource.
313
316
  :param pulumi.ResourceOptions opts: Options for the resource.
314
- :param pulumi.Input[str] description: A description for the content library item.
315
- :param pulumi.Input[str] file_url: File to import as the content library item.
316
- :param pulumi.Input[str] library_id: The ID of the content library in which to create the item.
317
- :param pulumi.Input[str] name: The name of the item to be created in the content library.
318
- :param pulumi.Input[str] source_uuid: Virtual machine UUID to clone to content library.
319
- :param pulumi.Input[str] type: Type of content library item.
317
+ :param pulumi.Input[_builtins.str] description: A description for the content library item.
318
+ :param pulumi.Input[_builtins.str] file_url: File to import as the content library item.
319
+ :param pulumi.Input[_builtins.str] library_id: The ID of the content library in which to create the item.
320
+ :param pulumi.Input[_builtins.str] name: The name of the item to be created in the content library.
321
+ :param pulumi.Input[_builtins.str] source_uuid: Virtual machine UUID to clone to content library.
322
+ :param pulumi.Input[_builtins.str] type: Type of content library item.
320
323
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
321
324
  """
322
325
  ...
@@ -391,6 +394,8 @@ class ContentLibraryItem(pulumi.CustomResource):
391
394
 
392
395
  supplying the content library ID. An example is below:
393
396
 
397
+ [docs-import]: https://developer.hashicorp.com/terraform/cli/import
398
+
394
399
  ```sh
395
400
  $ pulumi import vsphere:index/contentLibraryItem:ContentLibraryItem vsphere_content_library_item iso-linux-ubuntu-server-lts xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
396
401
  ```
@@ -410,12 +415,12 @@ class ContentLibraryItem(pulumi.CustomResource):
410
415
  def _internal_init(__self__,
411
416
  resource_name: str,
412
417
  opts: Optional[pulumi.ResourceOptions] = None,
413
- description: Optional[pulumi.Input[str]] = None,
414
- file_url: Optional[pulumi.Input[str]] = None,
415
- library_id: Optional[pulumi.Input[str]] = None,
416
- name: Optional[pulumi.Input[str]] = None,
417
- source_uuid: Optional[pulumi.Input[str]] = None,
418
- type: Optional[pulumi.Input[str]] = None,
418
+ description: Optional[pulumi.Input[_builtins.str]] = None,
419
+ file_url: Optional[pulumi.Input[_builtins.str]] = None,
420
+ library_id: Optional[pulumi.Input[_builtins.str]] = None,
421
+ name: Optional[pulumi.Input[_builtins.str]] = None,
422
+ source_uuid: Optional[pulumi.Input[_builtins.str]] = None,
423
+ type: Optional[pulumi.Input[_builtins.str]] = None,
419
424
  __props__=None):
420
425
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
421
426
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -443,12 +448,12 @@ class ContentLibraryItem(pulumi.CustomResource):
443
448
  def get(resource_name: str,
444
449
  id: pulumi.Input[str],
445
450
  opts: Optional[pulumi.ResourceOptions] = None,
446
- description: Optional[pulumi.Input[str]] = None,
447
- file_url: Optional[pulumi.Input[str]] = None,
448
- library_id: Optional[pulumi.Input[str]] = None,
449
- name: Optional[pulumi.Input[str]] = None,
450
- source_uuid: Optional[pulumi.Input[str]] = None,
451
- type: Optional[pulumi.Input[str]] = None) -> 'ContentLibraryItem':
451
+ description: Optional[pulumi.Input[_builtins.str]] = None,
452
+ file_url: Optional[pulumi.Input[_builtins.str]] = None,
453
+ library_id: Optional[pulumi.Input[_builtins.str]] = None,
454
+ name: Optional[pulumi.Input[_builtins.str]] = None,
455
+ source_uuid: Optional[pulumi.Input[_builtins.str]] = None,
456
+ type: Optional[pulumi.Input[_builtins.str]] = None) -> 'ContentLibraryItem':
452
457
  """
453
458
  Get an existing ContentLibraryItem resource's state with the given name, id, and optional extra
454
459
  properties used to qualify the lookup.
@@ -456,12 +461,12 @@ class ContentLibraryItem(pulumi.CustomResource):
456
461
  :param str resource_name: The unique name of the resulting resource.
457
462
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
458
463
  :param pulumi.ResourceOptions opts: Options for the resource.
459
- :param pulumi.Input[str] description: A description for the content library item.
460
- :param pulumi.Input[str] file_url: File to import as the content library item.
461
- :param pulumi.Input[str] library_id: The ID of the content library in which to create the item.
462
- :param pulumi.Input[str] name: The name of the item to be created in the content library.
463
- :param pulumi.Input[str] source_uuid: Virtual machine UUID to clone to content library.
464
- :param pulumi.Input[str] type: Type of content library item.
464
+ :param pulumi.Input[_builtins.str] description: A description for the content library item.
465
+ :param pulumi.Input[_builtins.str] file_url: File to import as the content library item.
466
+ :param pulumi.Input[_builtins.str] library_id: The ID of the content library in which to create the item.
467
+ :param pulumi.Input[_builtins.str] name: The name of the item to be created in the content library.
468
+ :param pulumi.Input[_builtins.str] source_uuid: Virtual machine UUID to clone to content library.
469
+ :param pulumi.Input[_builtins.str] type: Type of content library item.
465
470
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
466
471
  """
467
472
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -476,49 +481,49 @@ class ContentLibraryItem(pulumi.CustomResource):
476
481
  __props__.__dict__["type"] = type
477
482
  return ContentLibraryItem(resource_name, opts=opts, __props__=__props__)
478
483
 
479
- @property
484
+ @_builtins.property
480
485
  @pulumi.getter
481
- def description(self) -> pulumi.Output[Optional[str]]:
486
+ def description(self) -> pulumi.Output[Optional[_builtins.str]]:
482
487
  """
483
488
  A description for the content library item.
484
489
  """
485
490
  return pulumi.get(self, "description")
486
491
 
487
- @property
492
+ @_builtins.property
488
493
  @pulumi.getter(name="fileUrl")
489
- def file_url(self) -> pulumi.Output[Optional[str]]:
494
+ def file_url(self) -> pulumi.Output[Optional[_builtins.str]]:
490
495
  """
491
496
  File to import as the content library item.
492
497
  """
493
498
  return pulumi.get(self, "file_url")
494
499
 
495
- @property
500
+ @_builtins.property
496
501
  @pulumi.getter(name="libraryId")
497
- def library_id(self) -> pulumi.Output[str]:
502
+ def library_id(self) -> pulumi.Output[_builtins.str]:
498
503
  """
499
504
  The ID of the content library in which to create the item.
500
505
  """
501
506
  return pulumi.get(self, "library_id")
502
507
 
503
- @property
508
+ @_builtins.property
504
509
  @pulumi.getter
505
- def name(self) -> pulumi.Output[str]:
510
+ def name(self) -> pulumi.Output[_builtins.str]:
506
511
  """
507
512
  The name of the item to be created in the content library.
508
513
  """
509
514
  return pulumi.get(self, "name")
510
515
 
511
- @property
516
+ @_builtins.property
512
517
  @pulumi.getter(name="sourceUuid")
513
- def source_uuid(self) -> pulumi.Output[Optional[str]]:
518
+ def source_uuid(self) -> pulumi.Output[Optional[_builtins.str]]:
514
519
  """
515
520
  Virtual machine UUID to clone to content library.
516
521
  """
517
522
  return pulumi.get(self, "source_uuid")
518
523
 
519
- @property
524
+ @_builtins.property
520
525
  @pulumi.getter
521
- def type(self) -> pulumi.Output[Optional[str]]:
526
+ def type(self) -> pulumi.Output[Optional[_builtins.str]]:
522
527
  """
523
528
  Type of content library item.
524
529
  One of "ovf", "iso", or "vm-template". Default: `ovf`.
@@ -1,8 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
7
  import sys
8
8
  import pulumi
@@ -19,23 +19,23 @@ __all__ = ['CustomAttributeArgs', 'CustomAttribute']
19
19
  @pulumi.input_type
20
20
  class CustomAttributeArgs:
21
21
  def __init__(__self__, *,
22
- managed_object_type: Optional[pulumi.Input[str]] = None,
23
- name: Optional[pulumi.Input[str]] = None):
22
+ managed_object_type: Optional[pulumi.Input[_builtins.str]] = None,
23
+ name: Optional[pulumi.Input[_builtins.str]] = None):
24
24
  """
25
25
  The set of arguments for constructing a CustomAttribute resource.
26
- :param pulumi.Input[str] managed_object_type: The object type that this attribute may be
26
+ :param pulumi.Input[_builtins.str] managed_object_type: The object type that this attribute may be
27
27
  applied to. If not set, the custom attribute may be applied to any object
28
28
  type. For a full list, review the Managed Object Types. Forces a new resource if changed.
29
- :param pulumi.Input[str] name: The name of the custom attribute.
29
+ :param pulumi.Input[_builtins.str] name: The name of the custom attribute.
30
30
  """
31
31
  if managed_object_type is not None:
32
32
  pulumi.set(__self__, "managed_object_type", managed_object_type)
33
33
  if name is not None:
34
34
  pulumi.set(__self__, "name", name)
35
35
 
36
- @property
36
+ @_builtins.property
37
37
  @pulumi.getter(name="managedObjectType")
38
- def managed_object_type(self) -> Optional[pulumi.Input[str]]:
38
+ def managed_object_type(self) -> Optional[pulumi.Input[_builtins.str]]:
39
39
  """
40
40
  The object type that this attribute may be
41
41
  applied to. If not set, the custom attribute may be applied to any object
@@ -44,42 +44,42 @@ class CustomAttributeArgs:
44
44
  return pulumi.get(self, "managed_object_type")
45
45
 
46
46
  @managed_object_type.setter
47
- def managed_object_type(self, value: Optional[pulumi.Input[str]]):
47
+ def managed_object_type(self, value: Optional[pulumi.Input[_builtins.str]]):
48
48
  pulumi.set(self, "managed_object_type", value)
49
49
 
50
- @property
50
+ @_builtins.property
51
51
  @pulumi.getter
52
- def name(self) -> Optional[pulumi.Input[str]]:
52
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
53
53
  """
54
54
  The name of the custom attribute.
55
55
  """
56
56
  return pulumi.get(self, "name")
57
57
 
58
58
  @name.setter
59
- def name(self, value: Optional[pulumi.Input[str]]):
59
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
60
60
  pulumi.set(self, "name", value)
61
61
 
62
62
 
63
63
  @pulumi.input_type
64
64
  class _CustomAttributeState:
65
65
  def __init__(__self__, *,
66
- managed_object_type: Optional[pulumi.Input[str]] = None,
67
- name: Optional[pulumi.Input[str]] = None):
66
+ managed_object_type: Optional[pulumi.Input[_builtins.str]] = None,
67
+ name: Optional[pulumi.Input[_builtins.str]] = None):
68
68
  """
69
69
  Input properties used for looking up and filtering CustomAttribute resources.
70
- :param pulumi.Input[str] managed_object_type: The object type that this attribute may be
70
+ :param pulumi.Input[_builtins.str] managed_object_type: The object type that this attribute may be
71
71
  applied to. If not set, the custom attribute may be applied to any object
72
72
  type. For a full list, review the Managed Object Types. Forces a new resource if changed.
73
- :param pulumi.Input[str] name: The name of the custom attribute.
73
+ :param pulumi.Input[_builtins.str] name: The name of the custom attribute.
74
74
  """
75
75
  if managed_object_type is not None:
76
76
  pulumi.set(__self__, "managed_object_type", managed_object_type)
77
77
  if name is not None:
78
78
  pulumi.set(__self__, "name", name)
79
79
 
80
- @property
80
+ @_builtins.property
81
81
  @pulumi.getter(name="managedObjectType")
82
- def managed_object_type(self) -> Optional[pulumi.Input[str]]:
82
+ def managed_object_type(self) -> Optional[pulumi.Input[_builtins.str]]:
83
83
  """
84
84
  The object type that this attribute may be
85
85
  applied to. If not set, the custom attribute may be applied to any object
@@ -88,29 +88,30 @@ class _CustomAttributeState:
88
88
  return pulumi.get(self, "managed_object_type")
89
89
 
90
90
  @managed_object_type.setter
91
- def managed_object_type(self, value: Optional[pulumi.Input[str]]):
91
+ def managed_object_type(self, value: Optional[pulumi.Input[_builtins.str]]):
92
92
  pulumi.set(self, "managed_object_type", value)
93
93
 
94
- @property
94
+ @_builtins.property
95
95
  @pulumi.getter
96
- def name(self) -> Optional[pulumi.Input[str]]:
96
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
97
97
  """
98
98
  The name of the custom attribute.
99
99
  """
100
100
  return pulumi.get(self, "name")
101
101
 
102
102
  @name.setter
103
- def name(self, value: Optional[pulumi.Input[str]]):
103
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
104
104
  pulumi.set(self, "name", value)
105
105
 
106
106
 
107
+ @pulumi.type_token("vsphere:index/customAttribute:CustomAttribute")
107
108
  class CustomAttribute(pulumi.CustomResource):
108
109
  @overload
109
110
  def __init__(__self__,
110
111
  resource_name: str,
111
112
  opts: Optional[pulumi.ResourceOptions] = None,
112
- managed_object_type: Optional[pulumi.Input[str]] = None,
113
- name: Optional[pulumi.Input[str]] = None,
113
+ managed_object_type: Optional[pulumi.Input[_builtins.str]] = None,
114
+ name: Optional[pulumi.Input[_builtins.str]] = None,
114
115
  __props__=None):
115
116
  """
116
117
  The `CustomAttribute` resource can be used to create and manage custom
@@ -145,16 +146,18 @@ class CustomAttribute(pulumi.CustomResource):
145
146
 
146
147
  via its name, using the following command:
147
148
 
149
+ [docs-import]: https://developer.hashicorp.com/terraform/cli/import
150
+
148
151
  ```sh
149
152
  $ pulumi import vsphere:index/customAttribute:CustomAttribute attribute terraform-test-attribute
150
153
  ```
151
154
 
152
155
  :param str resource_name: The name of the resource.
153
156
  :param pulumi.ResourceOptions opts: Options for the resource.
154
- :param pulumi.Input[str] managed_object_type: The object type that this attribute may be
157
+ :param pulumi.Input[_builtins.str] managed_object_type: The object type that this attribute may be
155
158
  applied to. If not set, the custom attribute may be applied to any object
156
159
  type. For a full list, review the Managed Object Types. Forces a new resource if changed.
157
- :param pulumi.Input[str] name: The name of the custom attribute.
160
+ :param pulumi.Input[_builtins.str] name: The name of the custom attribute.
158
161
  """
159
162
  ...
160
163
  @overload
@@ -195,6 +198,8 @@ class CustomAttribute(pulumi.CustomResource):
195
198
 
196
199
  via its name, using the following command:
197
200
 
201
+ [docs-import]: https://developer.hashicorp.com/terraform/cli/import
202
+
198
203
  ```sh
199
204
  $ pulumi import vsphere:index/customAttribute:CustomAttribute attribute terraform-test-attribute
200
205
  ```
@@ -214,8 +219,8 @@ class CustomAttribute(pulumi.CustomResource):
214
219
  def _internal_init(__self__,
215
220
  resource_name: str,
216
221
  opts: Optional[pulumi.ResourceOptions] = None,
217
- managed_object_type: Optional[pulumi.Input[str]] = None,
218
- name: Optional[pulumi.Input[str]] = None,
222
+ managed_object_type: Optional[pulumi.Input[_builtins.str]] = None,
223
+ name: Optional[pulumi.Input[_builtins.str]] = None,
219
224
  __props__=None):
220
225
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
221
226
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -237,8 +242,8 @@ class CustomAttribute(pulumi.CustomResource):
237
242
  def get(resource_name: str,
238
243
  id: pulumi.Input[str],
239
244
  opts: Optional[pulumi.ResourceOptions] = None,
240
- managed_object_type: Optional[pulumi.Input[str]] = None,
241
- name: Optional[pulumi.Input[str]] = None) -> 'CustomAttribute':
245
+ managed_object_type: Optional[pulumi.Input[_builtins.str]] = None,
246
+ name: Optional[pulumi.Input[_builtins.str]] = None) -> 'CustomAttribute':
242
247
  """
243
248
  Get an existing CustomAttribute resource's state with the given name, id, and optional extra
244
249
  properties used to qualify the lookup.
@@ -246,10 +251,10 @@ class CustomAttribute(pulumi.CustomResource):
246
251
  :param str resource_name: The unique name of the resulting resource.
247
252
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
248
253
  :param pulumi.ResourceOptions opts: Options for the resource.
249
- :param pulumi.Input[str] managed_object_type: The object type that this attribute may be
254
+ :param pulumi.Input[_builtins.str] managed_object_type: The object type that this attribute may be
250
255
  applied to. If not set, the custom attribute may be applied to any object
251
256
  type. For a full list, review the Managed Object Types. Forces a new resource if changed.
252
- :param pulumi.Input[str] name: The name of the custom attribute.
257
+ :param pulumi.Input[_builtins.str] name: The name of the custom attribute.
253
258
  """
254
259
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
255
260
 
@@ -259,9 +264,9 @@ class CustomAttribute(pulumi.CustomResource):
259
264
  __props__.__dict__["name"] = name
260
265
  return CustomAttribute(resource_name, opts=opts, __props__=__props__)
261
266
 
262
- @property
267
+ @_builtins.property
263
268
  @pulumi.getter(name="managedObjectType")
264
- def managed_object_type(self) -> pulumi.Output[Optional[str]]:
269
+ def managed_object_type(self) -> pulumi.Output[Optional[_builtins.str]]:
265
270
  """
266
271
  The object type that this attribute may be
267
272
  applied to. If not set, the custom attribute may be applied to any object
@@ -269,9 +274,9 @@ class CustomAttribute(pulumi.CustomResource):
269
274
  """
270
275
  return pulumi.get(self, "managed_object_type")
271
276
 
272
- @property
277
+ @_builtins.property
273
278
  @pulumi.getter
274
- def name(self) -> pulumi.Output[str]:
279
+ def name(self) -> pulumi.Output[_builtins.str]:
275
280
  """
276
281
  The name of the custom attribute.
277
282
  """