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
@@ -40,31 +40,31 @@ class GetDatastoreClusterResult:
40
40
  raise TypeError("Expected argument 'name' to be a str")
41
41
  pulumi.set(__self__, "name", name)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter(name="datacenterId")
45
- def datacenter_id(self) -> Optional[str]:
45
+ def datacenter_id(self) -> Optional[_builtins.str]:
46
46
  return pulumi.get(self, "datacenter_id")
47
47
 
48
- @property
48
+ @_builtins.property
49
49
  @pulumi.getter
50
- def datastores(self) -> Sequence[str]:
50
+ def datastores(self) -> Sequence[_builtins.str]:
51
51
  """
52
- (Optional) The names of the datastores included in the specific
52
+ (Optional) The names of the datastores included in the specific
53
53
  cluster.
54
54
  """
55
55
  return pulumi.get(self, "datastores")
56
56
 
57
- @property
57
+ @_builtins.property
58
58
  @pulumi.getter
59
- def id(self) -> str:
59
+ def id(self) -> _builtins.str:
60
60
  """
61
61
  The provider-assigned unique ID for this managed resource.
62
62
  """
63
63
  return pulumi.get(self, "id")
64
64
 
65
- @property
65
+ @_builtins.property
66
66
  @pulumi.getter
67
- def name(self) -> str:
67
+ def name(self) -> _builtins.str:
68
68
  return pulumi.get(self, "name")
69
69
 
70
70
 
@@ -80,8 +80,8 @@ class AwaitableGetDatastoreClusterResult(GetDatastoreClusterResult):
80
80
  name=self.name)
81
81
 
82
82
 
83
- def get_datastore_cluster(datacenter_id: Optional[str] = None,
84
- name: Optional[str] = None,
83
+ def get_datastore_cluster(datacenter_id: Optional[_builtins.str] = None,
84
+ name: Optional[_builtins.str] = None,
85
85
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreClusterResult:
86
86
  """
87
87
  The `DatastoreCluster` data source can be used to discover the ID of a
@@ -101,12 +101,12 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
101
101
  ```
102
102
 
103
103
 
104
- :param str datacenter_id: The managed object reference
104
+ :param _builtins.str datacenter_id: The managed object reference
105
105
  ID of the datacenter the datastore cluster is located in.
106
106
  This can be omitted if the search path used in `name` is an absolute path.
107
107
  For default datacenters, use the id attribute from an empty
108
108
  `Datacenter` data source.
109
- :param str name: The name or absolute path to the datastore cluster.
109
+ :param _builtins.str name: The name or absolute path to the datastore cluster.
110
110
  """
111
111
  __args__ = dict()
112
112
  __args__['datacenterId'] = datacenter_id
@@ -119,8 +119,8 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
119
119
  datastores=pulumi.get(__ret__, 'datastores'),
120
120
  id=pulumi.get(__ret__, 'id'),
121
121
  name=pulumi.get(__ret__, 'name'))
122
- def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
123
- name: Optional[pulumi.Input[str]] = None,
122
+ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
123
+ name: Optional[pulumi.Input[_builtins.str]] = None,
124
124
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatastoreClusterResult]:
125
125
  """
126
126
  The `DatastoreCluster` data source can be used to discover the ID of a
@@ -140,12 +140,12 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
140
140
  ```
141
141
 
142
142
 
143
- :param str datacenter_id: The managed object reference
143
+ :param _builtins.str datacenter_id: The managed object reference
144
144
  ID of the datacenter the datastore cluster is located in.
145
145
  This can be omitted if the search path used in `name` is an absolute path.
146
146
  For default datacenters, use the id attribute from an empty
147
147
  `Datacenter` data source.
148
- :param str name: The name or absolute path to the datastore cluster.
148
+ :param _builtins.str name: The name or absolute path to the datastore cluster.
149
149
  """
150
150
  __args__ = dict()
151
151
  __args__['datacenterId'] = datacenter_id
@@ -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
@@ -40,27 +40,27 @@ class GetDatastoreStatsResult:
40
40
  raise TypeError("Expected argument 'id' to be a str")
41
41
  pulumi.set(__self__, "id", id)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter
45
- def capacity(self) -> Optional[Mapping[str, str]]:
45
+ def capacity(self) -> Optional[Mapping[str, _builtins.str]]:
46
46
  """
47
47
  A mapping of the capacity for all datastore in the datacenter,
48
48
  where the name of the datastore is used as key and the capacity as value.
49
49
  """
50
50
  return pulumi.get(self, "capacity")
51
51
 
52
- @property
52
+ @_builtins.property
53
53
  @pulumi.getter(name="datacenterId")
54
- def datacenter_id(self) -> str:
54
+ def datacenter_id(self) -> _builtins.str:
55
55
  """
56
56
  The [managed object reference ID][docs-about-morefs] of the
57
57
  datacenter the datastores are located in.
58
58
  """
59
59
  return pulumi.get(self, "datacenter_id")
60
60
 
61
- @property
61
+ @_builtins.property
62
62
  @pulumi.getter(name="freeSpace")
63
- def free_space(self) -> Optional[Mapping[str, str]]:
63
+ def free_space(self) -> Optional[Mapping[str, _builtins.str]]:
64
64
  """
65
65
  A mapping of the free space for each datastore in the
66
66
  datacenter, where the name of the datastore is used as key and the free space
@@ -68,9 +68,9 @@ class GetDatastoreStatsResult:
68
68
  """
69
69
  return pulumi.get(self, "free_space")
70
70
 
71
- @property
71
+ @_builtins.property
72
72
  @pulumi.getter
73
- def id(self) -> str:
73
+ def id(self) -> _builtins.str:
74
74
  """
75
75
  The provider-assigned unique ID for this managed resource.
76
76
  """
@@ -89,9 +89,9 @@ class AwaitableGetDatastoreStatsResult(GetDatastoreStatsResult):
89
89
  id=self.id)
90
90
 
91
91
 
92
- def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
93
- datacenter_id: Optional[str] = None,
94
- free_space: Optional[Mapping[str, str]] = None,
92
+ def get_datastore_stats(capacity: Optional[Mapping[str, _builtins.str]] = None,
93
+ datacenter_id: Optional[_builtins.str] = None,
94
+ free_space: Optional[Mapping[str, _builtins.str]] = None,
95
95
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatastoreStatsResult:
96
96
  """
97
97
  The `get_datastore_stats` data source can be used to retrieve the usage
@@ -124,15 +124,13 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
124
124
  and a `locals.tf` like that:
125
125
 
126
126
 
127
- :param Mapping[str, str] capacity: A mapping of the capacity for all datastore in the datacenter,
127
+ :param Mapping[str, _builtins.str] capacity: A mapping of the capacity for all datastore in the datacenter,
128
128
  where the name of the datastore is used as key and the capacity as value.
129
- :param str datacenter_id: The
129
+ :param _builtins.str datacenter_id: The
130
130
  [managed object reference ID][docs-about-morefs] of the datacenter the
131
131
  datastores are located in. For default datacenters, use the `id` attribute
132
132
  from an empty `Datacenter` data source.
133
-
134
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
135
- :param Mapping[str, str] free_space: A mapping of the free space for each datastore in the
133
+ :param Mapping[str, _builtins.str] free_space: A mapping of the free space for each datastore in the
136
134
  datacenter, where the name of the datastore is used as key and the free space
137
135
  as value.
138
136
  """
@@ -148,9 +146,9 @@ def get_datastore_stats(capacity: Optional[Mapping[str, str]] = None,
148
146
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
149
147
  free_space=pulumi.get(__ret__, 'free_space'),
150
148
  id=pulumi.get(__ret__, 'id'))
151
- def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
152
- datacenter_id: Optional[pulumi.Input[str]] = None,
153
- free_space: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
149
+ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
150
+ datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
151
+ free_space: Optional[pulumi.Input[Optional[Mapping[str, _builtins.str]]]] = None,
154
152
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDatastoreStatsResult]:
155
153
  """
156
154
  The `get_datastore_stats` data source can be used to retrieve the usage
@@ -183,15 +181,13 @@ def get_datastore_stats_output(capacity: Optional[pulumi.Input[Optional[Mapping[
183
181
  and a `locals.tf` like that:
184
182
 
185
183
 
186
- :param Mapping[str, str] capacity: A mapping of the capacity for all datastore in the datacenter,
184
+ :param Mapping[str, _builtins.str] capacity: A mapping of the capacity for all datastore in the datacenter,
187
185
  where the name of the datastore is used as key and the capacity as value.
188
- :param str datacenter_id: The
186
+ :param _builtins.str datacenter_id: The
189
187
  [managed object reference ID][docs-about-morefs] of the datacenter the
190
188
  datastores are located in. For default datacenters, use the `id` attribute
191
189
  from an empty `Datacenter` data source.
192
-
193
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
194
- :param Mapping[str, str] free_space: A mapping of the free space for each datastore in the
190
+ :param Mapping[str, _builtins.str] free_space: A mapping of the free space for each datastore in the
195
191
  datacenter, where the name of the datastore is used as key and the free space
196
192
  as value.
197
193
  """
@@ -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
@@ -40,27 +40,27 @@ class GetDistributedVirtualSwitchResult:
40
40
  raise TypeError("Expected argument 'uplinks' to be a list")
41
41
  pulumi.set(__self__, "uplinks", uplinks)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter(name="datacenterId")
45
- def datacenter_id(self) -> Optional[str]:
45
+ def datacenter_id(self) -> Optional[_builtins.str]:
46
46
  return pulumi.get(self, "datacenter_id")
47
47
 
48
- @property
48
+ @_builtins.property
49
49
  @pulumi.getter
50
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
51
51
  """
52
52
  The provider-assigned unique ID for this managed resource.
53
53
  """
54
54
  return pulumi.get(self, "id")
55
55
 
56
- @property
56
+ @_builtins.property
57
57
  @pulumi.getter
58
- def name(self) -> str:
58
+ def name(self) -> _builtins.str:
59
59
  return pulumi.get(self, "name")
60
60
 
61
- @property
61
+ @_builtins.property
62
62
  @pulumi.getter
63
- def uplinks(self) -> Sequence[str]:
63
+ def uplinks(self) -> Sequence[_builtins.str]:
64
64
  """
65
65
  The list of the uplinks on this vSphere distributed switch, as per the
66
66
  `uplinks` argument to the
@@ -82,8 +82,8 @@ class AwaitableGetDistributedVirtualSwitchResult(GetDistributedVirtualSwitchResu
82
82
  uplinks=self.uplinks)
83
83
 
84
84
 
85
- def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
86
- name: Optional[str] = None,
85
+ def get_distributed_virtual_switch(datacenter_id: Optional[_builtins.str] = None,
86
+ name: Optional[_builtins.str] = None,
87
87
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDistributedVirtualSwitchResult:
88
88
  """
89
89
  The `DistributedVirtualSwitch` data source can be used to discover
@@ -117,11 +117,11 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
117
117
  ```
118
118
 
119
119
 
120
- :param str datacenter_id: The managed object reference ID
120
+ :param _builtins.str datacenter_id: The managed object reference ID
121
121
  of the datacenter the VDS is located in. This can be omitted if the search
122
122
  path used in `name` is an absolute path. For default datacenters, use the `id`
123
123
  attribute from an empty `Datacenter` data source.
124
- :param str name: The name of the VDS. This can be a name or path.
124
+ :param _builtins.str name: The name of the VDS. This can be a name or path.
125
125
  """
126
126
  __args__ = dict()
127
127
  __args__['datacenterId'] = datacenter_id
@@ -134,8 +134,8 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None,
134
134
  id=pulumi.get(__ret__, 'id'),
135
135
  name=pulumi.get(__ret__, 'name'),
136
136
  uplinks=pulumi.get(__ret__, 'uplinks'))
137
- def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
138
- name: Optional[pulumi.Input[str]] = None,
137
+ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
138
+ name: Optional[pulumi.Input[_builtins.str]] = None,
139
139
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDistributedVirtualSwitchResult]:
140
140
  """
141
141
  The `DistributedVirtualSwitch` data source can be used to discover
@@ -169,11 +169,11 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O
169
169
  ```
170
170
 
171
171
 
172
- :param str datacenter_id: The managed object reference ID
172
+ :param _builtins.str datacenter_id: The managed object reference ID
173
173
  of the datacenter the VDS is located in. This can be omitted if the search
174
174
  path used in `name` is an absolute path. For default datacenters, use the `id`
175
175
  attribute from an empty `Datacenter` data source.
176
- :param str name: The name of the VDS. This can be a name or path.
176
+ :param _builtins.str name: The name of the VDS. This can be a name or path.
177
177
  """
178
178
  __args__ = dict()
179
179
  __args__['datacenterId'] = datacenter_id
@@ -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
@@ -40,27 +40,27 @@ class GetDynamicResult:
40
40
  raise TypeError("Expected argument 'type' to be a str")
41
41
  pulumi.set(__self__, "type", type)
42
42
 
43
- @property
43
+ @_builtins.property
44
44
  @pulumi.getter
45
- def filters(self) -> Sequence[str]:
45
+ def filters(self) -> Sequence[_builtins.str]:
46
46
  return pulumi.get(self, "filters")
47
47
 
48
- @property
48
+ @_builtins.property
49
49
  @pulumi.getter
50
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
51
51
  """
52
52
  The provider-assigned unique ID for this managed resource.
53
53
  """
54
54
  return pulumi.get(self, "id")
55
55
 
56
- @property
56
+ @_builtins.property
57
57
  @pulumi.getter(name="nameRegex")
58
- def name_regex(self) -> Optional[str]:
58
+ def name_regex(self) -> Optional[_builtins.str]:
59
59
  return pulumi.get(self, "name_regex")
60
60
 
61
- @property
61
+ @_builtins.property
62
62
  @pulumi.getter
63
- def type(self) -> Optional[str]:
63
+ def type(self) -> Optional[_builtins.str]:
64
64
  return pulumi.get(self, "type")
65
65
 
66
66
 
@@ -76,13 +76,11 @@ class AwaitableGetDynamicResult(GetDynamicResult):
76
76
  type=self.type)
77
77
 
78
78
 
79
- def get_dynamic(filters: Optional[Sequence[str]] = None,
80
- name_regex: Optional[str] = None,
81
- type: Optional[str] = None,
79
+ def get_dynamic(filters: Optional[Sequence[_builtins.str]] = None,
80
+ name_regex: Optional[_builtins.str] = None,
81
+ type: Optional[_builtins.str] = None,
82
82
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDynamicResult:
83
83
  """
84
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
85
-
86
84
  The `get_dynamic` data source can be used to get the
87
85
  [managed object reference ID][docs-about-morefs] of any tagged managed object in
88
86
  vCenter Server by providing a list of tag IDs and an optional regular expression
@@ -108,11 +106,11 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
108
106
  ```
109
107
 
110
108
 
111
- :param Sequence[str] filters: A list of tag IDs that must be present on an object to
109
+ :param Sequence[_builtins.str] filters: A list of tag IDs that must be present on an object to
112
110
  be a match.
113
- :param str name_regex: A regular expression that will be used to match the
111
+ :param _builtins.str name_regex: A regular expression that will be used to match the
114
112
  object's name.
115
- :param str type: The managed object type the returned object must match.
113
+ :param _builtins.str type: The managed object type the returned object must match.
116
114
  The managed object types can be found in the managed object type section
117
115
  [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
118
116
  """
@@ -128,13 +126,11 @@ def get_dynamic(filters: Optional[Sequence[str]] = None,
128
126
  id=pulumi.get(__ret__, 'id'),
129
127
  name_regex=pulumi.get(__ret__, 'name_regex'),
130
128
  type=pulumi.get(__ret__, 'type'))
131
- def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
132
- name_regex: Optional[pulumi.Input[Optional[str]]] = None,
133
- type: Optional[pulumi.Input[Optional[str]]] = None,
129
+ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[_builtins.str]]] = None,
130
+ name_regex: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
131
+ type: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
134
132
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDynamicResult]:
135
133
  """
136
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
137
-
138
134
  The `get_dynamic` data source can be used to get the
139
135
  [managed object reference ID][docs-about-morefs] of any tagged managed object in
140
136
  vCenter Server by providing a list of tag IDs and an optional regular expression
@@ -160,11 +156,11 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None,
160
156
  ```
161
157
 
162
158
 
163
- :param Sequence[str] filters: A list of tag IDs that must be present on an object to
159
+ :param Sequence[_builtins.str] filters: A list of tag IDs that must be present on an object to
164
160
  be a match.
165
- :param str name_regex: A regular expression that will be used to match the
161
+ :param _builtins.str name_regex: A regular expression that will be used to match the
166
162
  object's name.
167
- :param str type: The managed object type the returned object must match.
163
+ :param _builtins.str type: The managed object type the returned object must match.
168
164
  The managed object types can be found in the managed object type section
169
165
  [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
170
166
  """
@@ -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
@@ -34,17 +34,17 @@ class GetFolderResult:
34
34
  raise TypeError("Expected argument 'path' to be a str")
35
35
  pulumi.set(__self__, "path", path)
36
36
 
37
- @property
37
+ @_builtins.property
38
38
  @pulumi.getter
39
- def id(self) -> str:
39
+ def id(self) -> _builtins.str:
40
40
  """
41
41
  The provider-assigned unique ID for this managed resource.
42
42
  """
43
43
  return pulumi.get(self, "id")
44
44
 
45
- @property
45
+ @_builtins.property
46
46
  @pulumi.getter
47
- def path(self) -> str:
47
+ def path(self) -> _builtins.str:
48
48
  return pulumi.get(self, "path")
49
49
 
50
50
 
@@ -58,7 +58,7 @@ class AwaitableGetFolderResult(GetFolderResult):
58
58
  path=self.path)
59
59
 
60
60
 
61
- def get_folder(path: Optional[str] = None,
61
+ def get_folder(path: Optional[_builtins.str] = None,
62
62
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFolderResult:
63
63
  """
64
64
  The `Folder` data source can be used to get the general attributes of a
@@ -74,15 +74,76 @@ def get_folder(path: Optional[str] = None,
74
74
  import pulumi
75
75
  import pulumi_vsphere as vsphere
76
76
 
77
- folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
77
+ datacenter_folder_folder = vsphere.Folder("datacenter_folder",
78
+ path="example-datacenter-folder",
79
+ type="datacenter")
80
+ datacenter_folder = vsphere.get_folder_output(path=datacenter_folder_folder.path.apply(lambda path: f"/{path}"))
81
+ datacenter_datacenter = vsphere.Datacenter("datacenter",
82
+ name="example-datacenter",
83
+ folder=datacenter_folder.path,
84
+ opts = pulumi.ResourceOptions(depends_on=[datacenter_folder]))
85
+ datacenter = vsphere.get_datacenter_output(name=datacenter_datacenter.name)
86
+ vm_folder_folder = vsphere.Folder("vm_folder",
87
+ path="example-vm-folder",
88
+ type="vm",
89
+ datacenter_id=datacenter.id)
90
+ datastore_folder_folder = vsphere.Folder("datastore_folder",
91
+ path="example-datastore-folder",
92
+ type="datastore",
93
+ datacenter_id=datacenter.id)
94
+ network_folder_folder = vsphere.Folder("network_folder",
95
+ path="example-network-folder",
96
+ type="network",
97
+ datacenter_id=datacenter.id)
98
+ host_folder_folder = vsphere.Folder("host_folder",
99
+ path="example-host-folder",
100
+ type="host",
101
+ datacenter_id=datacenter.id)
102
+ vm_folder = vsphere.get_folder_output(path=pulumi.Output.all(
103
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
104
+ name=datacenter_datacenter.name,
105
+ vmFolderFolderPath=vm_folder_folder.path
106
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/vm/{resolved_outputs['vmFolderFolderPath']}")
107
+ )
108
+ datastore_folder = vsphere.get_folder_output(path=pulumi.Output.all(
109
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
110
+ name=datacenter_datacenter.name,
111
+ datastoreFolderFolderPath=datastore_folder_folder.path
112
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/datastore/{resolved_outputs['datastoreFolderFolderPath']}")
113
+ )
114
+ network_folder = vsphere.get_folder_output(path=pulumi.Output.all(
115
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
116
+ name=datacenter_datacenter.name,
117
+ networkFolderFolderPath=network_folder_folder.path
118
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/network/{resolved_outputs['networkFolderFolderPath']}")
119
+ )
120
+ host_folder = vsphere.get_folder_output(path=pulumi.Output.all(
121
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
122
+ name=datacenter_datacenter.name,
123
+ hostFolderFolderPath=host_folder_folder.path
124
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/host/{resolved_outputs['hostFolderFolderPath']}")
125
+ )
126
+ pulumi.export("vmFolderId", vm_folder.id)
127
+ pulumi.export("datastoreFolderId", datastore_folder.id)
128
+ pulumi.export("networkFolderId", network_folder.id)
129
+ pulumi.export("hostFolderId", host_folder.id)
130
+ pulumi.export("datacenterId", datacenter.id)
131
+ pulumi.export("datacenterFolderPath", datacenter_folder_folder.path)
78
132
  ```
79
133
 
80
134
 
81
- :param str path: The absolute path of the folder. For example, given a
135
+ :param _builtins.str path: The absolute path of the folder. For example, given a
82
136
  default datacenter of `default-dc`, a folder of type `vm`, and a folder name
83
- of `test-folder`, the resulting path would be
84
- `/default-dc/vm/test-folder`. The valid folder types to be used in
85
- the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
137
+ of `example-vm-folder`, the resulting `path` would be
138
+ `/default-dc/vm/example-vm-folder`.
139
+
140
+ For nested datacenters, include the full hierarchy in the path. For example, if datacenter
141
+ `default-dc` is inside folder `parent-folder`, the path to a VM folder would be
142
+ `/parent-folder/default-dc/vm/example-vm-folder`.
143
+
144
+ The valid folder types to be used in a `path` are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
145
+
146
+ Always include a leading slash in the `path`.
86
147
  """
87
148
  __args__ = dict()
88
149
  __args__['path'] = path
@@ -92,7 +153,7 @@ def get_folder(path: Optional[str] = None,
92
153
  return AwaitableGetFolderResult(
93
154
  id=pulumi.get(__ret__, 'id'),
94
155
  path=pulumi.get(__ret__, 'path'))
95
- def get_folder_output(path: Optional[pulumi.Input[str]] = None,
156
+ def get_folder_output(path: Optional[pulumi.Input[_builtins.str]] = None,
96
157
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetFolderResult]:
97
158
  """
98
159
  The `Folder` data source can be used to get the general attributes of a
@@ -108,15 +169,76 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
108
169
  import pulumi
109
170
  import pulumi_vsphere as vsphere
110
171
 
111
- folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
172
+ datacenter_folder_folder = vsphere.Folder("datacenter_folder",
173
+ path="example-datacenter-folder",
174
+ type="datacenter")
175
+ datacenter_folder = vsphere.get_folder_output(path=datacenter_folder_folder.path.apply(lambda path: f"/{path}"))
176
+ datacenter_datacenter = vsphere.Datacenter("datacenter",
177
+ name="example-datacenter",
178
+ folder=datacenter_folder.path,
179
+ opts = pulumi.ResourceOptions(depends_on=[datacenter_folder]))
180
+ datacenter = vsphere.get_datacenter_output(name=datacenter_datacenter.name)
181
+ vm_folder_folder = vsphere.Folder("vm_folder",
182
+ path="example-vm-folder",
183
+ type="vm",
184
+ datacenter_id=datacenter.id)
185
+ datastore_folder_folder = vsphere.Folder("datastore_folder",
186
+ path="example-datastore-folder",
187
+ type="datastore",
188
+ datacenter_id=datacenter.id)
189
+ network_folder_folder = vsphere.Folder("network_folder",
190
+ path="example-network-folder",
191
+ type="network",
192
+ datacenter_id=datacenter.id)
193
+ host_folder_folder = vsphere.Folder("host_folder",
194
+ path="example-host-folder",
195
+ type="host",
196
+ datacenter_id=datacenter.id)
197
+ vm_folder = vsphere.get_folder_output(path=pulumi.Output.all(
198
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
199
+ name=datacenter_datacenter.name,
200
+ vmFolderFolderPath=vm_folder_folder.path
201
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/vm/{resolved_outputs['vmFolderFolderPath']}")
202
+ )
203
+ datastore_folder = vsphere.get_folder_output(path=pulumi.Output.all(
204
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
205
+ name=datacenter_datacenter.name,
206
+ datastoreFolderFolderPath=datastore_folder_folder.path
207
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/datastore/{resolved_outputs['datastoreFolderFolderPath']}")
208
+ )
209
+ network_folder = vsphere.get_folder_output(path=pulumi.Output.all(
210
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
211
+ name=datacenter_datacenter.name,
212
+ networkFolderFolderPath=network_folder_folder.path
213
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/network/{resolved_outputs['networkFolderFolderPath']}")
214
+ )
215
+ host_folder = vsphere.get_folder_output(path=pulumi.Output.all(
216
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
217
+ name=datacenter_datacenter.name,
218
+ hostFolderFolderPath=host_folder_folder.path
219
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/host/{resolved_outputs['hostFolderFolderPath']}")
220
+ )
221
+ pulumi.export("vmFolderId", vm_folder.id)
222
+ pulumi.export("datastoreFolderId", datastore_folder.id)
223
+ pulumi.export("networkFolderId", network_folder.id)
224
+ pulumi.export("hostFolderId", host_folder.id)
225
+ pulumi.export("datacenterId", datacenter.id)
226
+ pulumi.export("datacenterFolderPath", datacenter_folder_folder.path)
112
227
  ```
113
228
 
114
229
 
115
- :param str path: The absolute path of the folder. For example, given a
230
+ :param _builtins.str path: The absolute path of the folder. For example, given a
116
231
  default datacenter of `default-dc`, a folder of type `vm`, and a folder name
117
- of `test-folder`, the resulting path would be
118
- `/default-dc/vm/test-folder`. The valid folder types to be used in
119
- the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
232
+ of `example-vm-folder`, the resulting `path` would be
233
+ `/default-dc/vm/example-vm-folder`.
234
+
235
+ For nested datacenters, include the full hierarchy in the path. For example, if datacenter
236
+ `default-dc` is inside folder `parent-folder`, the path to a VM folder would be
237
+ `/parent-folder/default-dc/vm/example-vm-folder`.
238
+
239
+ The valid folder types to be used in a `path` are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
240
+
241
+ Always include a leading slash in the `path`.
120
242
  """
121
243
  __args__ = dict()
122
244
  __args__['path'] = path