pulumi-vsphere 4.14.0a1746734806__py3-none-any.whl → 4.15.0__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 (87) hide show
  1. pulumi_vsphere/__init__.py +1 -1
  2. pulumi_vsphere/_inputs.py +1 -1
  3. pulumi_vsphere/_utilities.py +1 -1
  4. pulumi_vsphere/compute_cluster.py +11 -11
  5. pulumi_vsphere/compute_cluster_host_group.py +71 -1
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +1 -1
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +5 -1
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +5 -1
  9. pulumi_vsphere/compute_cluster_vm_group.py +5 -1
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +5 -1
  11. pulumi_vsphere/config/__init__.py +1 -1
  12. pulumi_vsphere/config/__init__.pyi +1 -1
  13. pulumi_vsphere/config/vars.py +1 -1
  14. pulumi_vsphere/content_library.py +5 -1
  15. pulumi_vsphere/content_library_item.py +5 -1
  16. pulumi_vsphere/custom_attribute.py +5 -1
  17. pulumi_vsphere/datacenter.py +1 -1
  18. pulumi_vsphere/datastore_cluster.py +89 -1
  19. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +5 -1
  20. pulumi_vsphere/distributed_port_group.py +5 -1
  21. pulumi_vsphere/distributed_virtual_switch.py +5 -1
  22. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +1 -1
  23. pulumi_vsphere/dpm_host_override.py +89 -1
  24. pulumi_vsphere/drs_vm_override.py +5 -1
  25. pulumi_vsphere/entity_permissions.py +1 -1
  26. pulumi_vsphere/file.py +35 -50
  27. pulumi_vsphere/folder.py +17 -13
  28. pulumi_vsphere/get_compute_cluster.py +1 -1
  29. pulumi_vsphere/get_compute_cluster_host_group.py +1 -5
  30. pulumi_vsphere/get_content_library.py +1 -1
  31. pulumi_vsphere/get_content_library_item.py +1 -1
  32. pulumi_vsphere/get_custom_attribute.py +1 -1
  33. pulumi_vsphere/get_datacenter.py +1 -1
  34. pulumi_vsphere/get_datastore.py +1 -1
  35. pulumi_vsphere/get_datastore_cluster.py +2 -2
  36. pulumi_vsphere/get_datastore_stats.py +1 -5
  37. pulumi_vsphere/get_distributed_virtual_switch.py +1 -1
  38. pulumi_vsphere/get_dynamic.py +1 -5
  39. pulumi_vsphere/get_folder.py +131 -9
  40. pulumi_vsphere/get_guest_os_customization.py +22 -3
  41. pulumi_vsphere/get_host.py +1 -1
  42. pulumi_vsphere/get_host_base_images.py +1 -1
  43. pulumi_vsphere/get_host_pci_device.py +1 -1
  44. pulumi_vsphere/get_host_thumbprint.py +1 -1
  45. pulumi_vsphere/get_host_vgpu_profile.py +1 -1
  46. pulumi_vsphere/get_license.py +9 -7
  47. pulumi_vsphere/get_network.py +56 -5
  48. pulumi_vsphere/get_ovf_vm_template.py +5 -5
  49. pulumi_vsphere/get_policy.py +1 -1
  50. pulumi_vsphere/get_resource_pool.py +64 -13
  51. pulumi_vsphere/get_role.py +1 -1
  52. pulumi_vsphere/get_tag.py +1 -1
  53. pulumi_vsphere/get_tag_category.py +1 -1
  54. pulumi_vsphere/get_vapp_container.py +1 -1
  55. pulumi_vsphere/get_virtual_machine.py +1 -1
  56. pulumi_vsphere/get_vmfs_disks.py +1 -1
  57. pulumi_vsphere/guest_os_customization.py +1 -1
  58. pulumi_vsphere/ha_vm_override.py +5 -1
  59. pulumi_vsphere/host.py +61 -7
  60. pulumi_vsphere/host_port_group.py +1 -1
  61. pulumi_vsphere/host_virtual_switch.py +5 -1
  62. pulumi_vsphere/license.py +67 -27
  63. pulumi_vsphere/nas_datastore.py +63 -1
  64. pulumi_vsphere/offline_software_depot.py +5 -1
  65. pulumi_vsphere/outputs.py +34 -1
  66. pulumi_vsphere/provider.py +36 -38
  67. pulumi_vsphere/pulumi-plugin.json +1 -1
  68. pulumi_vsphere/resource_pool.py +490 -164
  69. pulumi_vsphere/role.py +1 -1
  70. pulumi_vsphere/storage_drs_vm_override.py +5 -1
  71. pulumi_vsphere/supervisor.py +3 -3
  72. pulumi_vsphere/tag.py +5 -1
  73. pulumi_vsphere/tag_category.py +5 -1
  74. pulumi_vsphere/vapp_container.py +5 -1
  75. pulumi_vsphere/vapp_entity.py +5 -1
  76. pulumi_vsphere/virtual_disk.py +5 -1
  77. pulumi_vsphere/virtual_machine.py +5 -5
  78. pulumi_vsphere/virtual_machine_class.py +5 -5
  79. pulumi_vsphere/virtual_machine_snapshot.py +1 -1
  80. pulumi_vsphere/vm_storage_policy.py +1 -1
  81. pulumi_vsphere/vmfs_datastore.py +5 -1
  82. pulumi_vsphere/vnic.py +1 -1
  83. {pulumi_vsphere-4.14.0a1746734806.dist-info → pulumi_vsphere-4.15.0.dist-info}/METADATA +1 -1
  84. pulumi_vsphere-4.15.0.dist-info/RECORD +87 -0
  85. {pulumi_vsphere-4.14.0a1746734806.dist-info → pulumi_vsphere-4.15.0.dist-info}/WHEEL +1 -1
  86. pulumi_vsphere-4.14.0a1746734806.dist-info/RECORD +0 -87
  87. {pulumi_vsphere-4.14.0a1746734806.dist-info → pulumi_vsphere-4.15.0.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -75,15 +75,76 @@ def get_folder(path: Optional[builtins.str] = None,
75
75
  import pulumi
76
76
  import pulumi_vsphere as vsphere
77
77
 
78
- folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
78
+ datacenter_folder_folder = vsphere.Folder("datacenter_folder",
79
+ path="example-datacenter-folder",
80
+ type="datacenter")
81
+ datacenter_folder = vsphere.get_folder_output(path=datacenter_folder_folder.path.apply(lambda path: f"/{path}"))
82
+ datacenter_datacenter = vsphere.Datacenter("datacenter",
83
+ name="example-datacenter",
84
+ folder=datacenter_folder.path,
85
+ opts = pulumi.ResourceOptions(depends_on=[datacenter_folder]))
86
+ datacenter = vsphere.get_datacenter_output(name=datacenter_datacenter.name)
87
+ vm_folder_folder = vsphere.Folder("vm_folder",
88
+ path="example-vm-folder",
89
+ type="vm",
90
+ datacenter_id=datacenter.id)
91
+ datastore_folder_folder = vsphere.Folder("datastore_folder",
92
+ path="example-datastore-folder",
93
+ type="datastore",
94
+ datacenter_id=datacenter.id)
95
+ network_folder_folder = vsphere.Folder("network_folder",
96
+ path="example-network-folder",
97
+ type="network",
98
+ datacenter_id=datacenter.id)
99
+ host_folder_folder = vsphere.Folder("host_folder",
100
+ path="example-host-folder",
101
+ type="host",
102
+ datacenter_id=datacenter.id)
103
+ vm_folder = vsphere.get_folder_output(path=pulumi.Output.all(
104
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
105
+ name=datacenter_datacenter.name,
106
+ vmFolderFolderPath=vm_folder_folder.path
107
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/vm/{resolved_outputs['vmFolderFolderPath']}")
108
+ )
109
+ datastore_folder = vsphere.get_folder_output(path=pulumi.Output.all(
110
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
111
+ name=datacenter_datacenter.name,
112
+ datastoreFolderFolderPath=datastore_folder_folder.path
113
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/datastore/{resolved_outputs['datastoreFolderFolderPath']}")
114
+ )
115
+ network_folder = vsphere.get_folder_output(path=pulumi.Output.all(
116
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
117
+ name=datacenter_datacenter.name,
118
+ networkFolderFolderPath=network_folder_folder.path
119
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/network/{resolved_outputs['networkFolderFolderPath']}")
120
+ )
121
+ host_folder = vsphere.get_folder_output(path=pulumi.Output.all(
122
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
123
+ name=datacenter_datacenter.name,
124
+ hostFolderFolderPath=host_folder_folder.path
125
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/host/{resolved_outputs['hostFolderFolderPath']}")
126
+ )
127
+ pulumi.export("vmFolderId", vm_folder.id)
128
+ pulumi.export("datastoreFolderId", datastore_folder.id)
129
+ pulumi.export("networkFolderId", network_folder.id)
130
+ pulumi.export("hostFolderId", host_folder.id)
131
+ pulumi.export("datacenterId", datacenter.id)
132
+ pulumi.export("datacenterFolderPath", datacenter_folder_folder.path)
79
133
  ```
80
134
 
81
135
 
82
136
  :param builtins.str path: The absolute path of the folder. For example, given a
83
137
  default datacenter of `default-dc`, a folder of type `vm`, and a folder name
84
- of `test-folder`, the resulting path would be
85
- `/default-dc/vm/test-folder`. The valid folder types to be used in
86
- the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
138
+ of `example-vm-folder`, the resulting `path` would be
139
+ `/default-dc/vm/example-vm-folder`.
140
+
141
+ For nested datacenters, include the full hierarchy in the path. For example, if datacenter
142
+ `default-dc` is inside folder `parent-folder`, the path to a VM folder would be
143
+ `/parent-folder/default-dc/vm/example-vm-folder`.
144
+
145
+ The valid folder types to be used in a `path` are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
146
+
147
+ Always include a leading slash in the `path`.
87
148
  """
88
149
  __args__ = dict()
89
150
  __args__['path'] = path
@@ -109,15 +170,76 @@ def get_folder_output(path: Optional[pulumi.Input[builtins.str]] = None,
109
170
  import pulumi
110
171
  import pulumi_vsphere as vsphere
111
172
 
112
- folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01")
173
+ datacenter_folder_folder = vsphere.Folder("datacenter_folder",
174
+ path="example-datacenter-folder",
175
+ type="datacenter")
176
+ datacenter_folder = vsphere.get_folder_output(path=datacenter_folder_folder.path.apply(lambda path: f"/{path}"))
177
+ datacenter_datacenter = vsphere.Datacenter("datacenter",
178
+ name="example-datacenter",
179
+ folder=datacenter_folder.path,
180
+ opts = pulumi.ResourceOptions(depends_on=[datacenter_folder]))
181
+ datacenter = vsphere.get_datacenter_output(name=datacenter_datacenter.name)
182
+ vm_folder_folder = vsphere.Folder("vm_folder",
183
+ path="example-vm-folder",
184
+ type="vm",
185
+ datacenter_id=datacenter.id)
186
+ datastore_folder_folder = vsphere.Folder("datastore_folder",
187
+ path="example-datastore-folder",
188
+ type="datastore",
189
+ datacenter_id=datacenter.id)
190
+ network_folder_folder = vsphere.Folder("network_folder",
191
+ path="example-network-folder",
192
+ type="network",
193
+ datacenter_id=datacenter.id)
194
+ host_folder_folder = vsphere.Folder("host_folder",
195
+ path="example-host-folder",
196
+ type="host",
197
+ datacenter_id=datacenter.id)
198
+ vm_folder = vsphere.get_folder_output(path=pulumi.Output.all(
199
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
200
+ name=datacenter_datacenter.name,
201
+ vmFolderFolderPath=vm_folder_folder.path
202
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/vm/{resolved_outputs['vmFolderFolderPath']}")
203
+ )
204
+ datastore_folder = vsphere.get_folder_output(path=pulumi.Output.all(
205
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
206
+ name=datacenter_datacenter.name,
207
+ datastoreFolderFolderPath=datastore_folder_folder.path
208
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/datastore/{resolved_outputs['datastoreFolderFolderPath']}")
209
+ )
210
+ network_folder = vsphere.get_folder_output(path=pulumi.Output.all(
211
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
212
+ name=datacenter_datacenter.name,
213
+ networkFolderFolderPath=network_folder_folder.path
214
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/network/{resolved_outputs['networkFolderFolderPath']}")
215
+ )
216
+ host_folder = vsphere.get_folder_output(path=pulumi.Output.all(
217
+ datacenterFolderFolderPath=datacenter_folder_folder.path,
218
+ name=datacenter_datacenter.name,
219
+ hostFolderFolderPath=host_folder_folder.path
220
+ ).apply(lambda resolved_outputs: f"/{resolved_outputs['datacenterFolderFolderPath']}/{resolved_outputs['name']}/host/{resolved_outputs['hostFolderFolderPath']}")
221
+ )
222
+ pulumi.export("vmFolderId", vm_folder.id)
223
+ pulumi.export("datastoreFolderId", datastore_folder.id)
224
+ pulumi.export("networkFolderId", network_folder.id)
225
+ pulumi.export("hostFolderId", host_folder.id)
226
+ pulumi.export("datacenterId", datacenter.id)
227
+ pulumi.export("datacenterFolderPath", datacenter_folder_folder.path)
113
228
  ```
114
229
 
115
230
 
116
231
  :param builtins.str path: The absolute path of the folder. For example, given a
117
232
  default datacenter of `default-dc`, a folder of type `vm`, and a folder name
118
- of `test-folder`, the resulting path would be
119
- `/default-dc/vm/test-folder`. The valid folder types to be used in
120
- the path are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
233
+ of `example-vm-folder`, the resulting `path` would be
234
+ `/default-dc/vm/example-vm-folder`.
235
+
236
+ For nested datacenters, include the full hierarchy in the path. For example, if datacenter
237
+ `default-dc` is inside folder `parent-folder`, the path to a VM folder would be
238
+ `/parent-folder/default-dc/vm/example-vm-folder`.
239
+
240
+ The valid folder types to be used in a `path` are: `vm`, `host`, `datacenter`, `datastore`, or `network`.
241
+
242
+ Always include a leading slash in the `path`.
121
243
  """
122
244
  __args__ = dict()
123
245
  __args__['path'] = path
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -54,11 +54,18 @@ class GetGuestOsCustomizationResult:
54
54
  @property
55
55
  @pulumi.getter(name="changeVersion")
56
56
  def change_version(self) -> builtins.str:
57
+ """
58
+ The number of last changed version to the customization
59
+ specification.
60
+ """
57
61
  return pulumi.get(self, "change_version")
58
62
 
59
63
  @property
60
64
  @pulumi.getter
61
65
  def description(self) -> builtins.str:
66
+ """
67
+ The description for the customization specification.
68
+ """
62
69
  return pulumi.get(self, "description")
63
70
 
64
71
  @property
@@ -72,6 +79,10 @@ class GetGuestOsCustomizationResult:
72
79
  @property
73
80
  @pulumi.getter(name="lastUpdateTime")
74
81
  def last_update_time(self) -> builtins.str:
82
+ """
83
+ The time of last modification to the customization
84
+ specification.
85
+ """
75
86
  return pulumi.get(self, "last_update_time")
76
87
 
77
88
  @property
@@ -82,11 +93,19 @@ class GetGuestOsCustomizationResult:
82
93
  @property
83
94
  @pulumi.getter
84
95
  def specs(self) -> Sequence['outputs.GetGuestOsCustomizationSpecResult']:
96
+ """
97
+ Container object for the guest operating system properties to be
98
+ customized. See
99
+ virtual machine customizations
100
+ """
85
101
  return pulumi.get(self, "specs")
86
102
 
87
103
  @property
88
104
  @pulumi.getter
89
105
  def type(self) -> builtins.str:
106
+ """
107
+ The type of customization specification: One among: Windows, Linux.
108
+ """
90
109
  return pulumi.get(self, "type")
91
110
 
92
111
 
@@ -113,7 +132,7 @@ def get_guest_os_customization(name: Optional[builtins.str] = None,
113
132
 
114
133
 
115
134
  :param builtins.str name: The name of the customization specification is the unique
116
- identifier per vCenter Server instance. ## Attribute Reference
135
+ identifier per vCenter Server instance.
117
136
  """
118
137
  __args__ = dict()
119
138
  __args__['name'] = name
@@ -136,7 +155,7 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[builtins.str]]
136
155
 
137
156
 
138
157
  :param builtins.str name: The name of the customization specification is the unique
139
- identifier per vCenter Server instance. ## Attribute Reference
158
+ identifier per vCenter Server instance.
140
159
  """
141
160
  __args__ = dict()
142
161
  __args__['name'] = name
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -61,14 +61,16 @@ class GetLicenseResult:
61
61
  @property
62
62
  @pulumi.getter
63
63
  def id(self) -> builtins.str:
64
+ """
65
+ The license key ID.
66
+ """
64
67
  return pulumi.get(self, "id")
65
68
 
66
69
  @property
67
70
  @pulumi.getter
68
71
  def labels(self) -> Mapping[str, builtins.str]:
69
72
  """
70
- A map of key/value pairs attached as labels (tags) to the license
71
- key.
73
+ A map of labels applied to the license key.
72
74
  """
73
75
  return pulumi.get(self, "labels")
74
76
 
@@ -89,7 +91,7 @@ class GetLicenseResult:
89
91
  @pulumi.getter
90
92
  def total(self) -> builtins.int:
91
93
  """
92
- Total number of units (example: CPUs) contained in the license.
94
+ The total number of units contained in the license key.
93
95
  """
94
96
  return pulumi.get(self, "total")
95
97
 
@@ -97,7 +99,7 @@ class GetLicenseResult:
97
99
  @pulumi.getter
98
100
  def used(self) -> builtins.int:
99
101
  """
100
- The number of units (example: CPUs) assigned to this license.
102
+ The number of units assigned to this license key.
101
103
  """
102
104
  return pulumi.get(self, "used")
103
105
 
@@ -133,7 +135,7 @@ def get_license(license_key: Optional[builtins.str] = None,
133
135
  ```
134
136
 
135
137
 
136
- :param builtins.str license_key: The license key.
138
+ :param builtins.str license_key: The license key value.
137
139
  """
138
140
  __args__ = dict()
139
141
  __args__['licenseKey'] = license_key
@@ -164,7 +166,7 @@ def get_license_output(license_key: Optional[pulumi.Input[builtins.str]] = None,
164
166
  ```
165
167
 
166
168
 
167
- :param builtins.str license_key: The license key.
169
+ :param builtins.str license_key: The license key value.
168
170
  """
169
171
  __args__ = dict()
170
172
  __args__['licenseKey'] = license_key
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -29,7 +29,7 @@ class GetNetworkResult:
29
29
  """
30
30
  A collection of values returned by getNetwork.
31
31
  """
32
- def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, type=None):
32
+ def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, retry_interval=None, retry_timeout=None, type=None, vpc_id=None):
33
33
  if datacenter_id and not isinstance(datacenter_id, str):
34
34
  raise TypeError("Expected argument 'datacenter_id' to be a str")
35
35
  pulumi.set(__self__, "datacenter_id", datacenter_id)
@@ -45,9 +45,18 @@ class GetNetworkResult:
45
45
  if name and not isinstance(name, str):
46
46
  raise TypeError("Expected argument 'name' to be a str")
47
47
  pulumi.set(__self__, "name", name)
48
+ if retry_interval and not isinstance(retry_interval, int):
49
+ raise TypeError("Expected argument 'retry_interval' to be a int")
50
+ pulumi.set(__self__, "retry_interval", retry_interval)
51
+ if retry_timeout and not isinstance(retry_timeout, int):
52
+ raise TypeError("Expected argument 'retry_timeout' to be a int")
53
+ pulumi.set(__self__, "retry_timeout", retry_timeout)
48
54
  if type and not isinstance(type, str):
49
55
  raise TypeError("Expected argument 'type' to be a str")
50
56
  pulumi.set(__self__, "type", type)
57
+ if vpc_id and not isinstance(vpc_id, str):
58
+ raise TypeError("Expected argument 'vpc_id' to be a str")
59
+ pulumi.set(__self__, "vpc_id", vpc_id)
51
60
 
52
61
  @property
53
62
  @pulumi.getter(name="datacenterId")
@@ -77,6 +86,16 @@ class GetNetworkResult:
77
86
  def name(self) -> builtins.str:
78
87
  return pulumi.get(self, "name")
79
88
 
89
+ @property
90
+ @pulumi.getter(name="retryInterval")
91
+ def retry_interval(self) -> Optional[builtins.int]:
92
+ return pulumi.get(self, "retry_interval")
93
+
94
+ @property
95
+ @pulumi.getter(name="retryTimeout")
96
+ def retry_timeout(self) -> Optional[builtins.int]:
97
+ return pulumi.get(self, "retry_timeout")
98
+
80
99
  @property
81
100
  @pulumi.getter
82
101
  def type(self) -> builtins.str:
@@ -88,6 +107,11 @@ class GetNetworkResult:
88
107
  """
89
108
  return pulumi.get(self, "type")
90
109
 
110
+ @property
111
+ @pulumi.getter(name="vpcId")
112
+ def vpc_id(self) -> Optional[builtins.str]:
113
+ return pulumi.get(self, "vpc_id")
114
+
91
115
 
92
116
  class AwaitableGetNetworkResult(GetNetworkResult):
93
117
  # pylint: disable=using-constant-test
@@ -100,13 +124,19 @@ class AwaitableGetNetworkResult(GetNetworkResult):
100
124
  filters=self.filters,
101
125
  id=self.id,
102
126
  name=self.name,
103
- type=self.type)
127
+ retry_interval=self.retry_interval,
128
+ retry_timeout=self.retry_timeout,
129
+ type=self.type,
130
+ vpc_id=self.vpc_id)
104
131
 
105
132
 
106
133
  def get_network(datacenter_id: Optional[builtins.str] = None,
107
134
  distributed_virtual_switch_uuid: Optional[builtins.str] = None,
108
135
  filters: Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]] = None,
109
136
  name: Optional[builtins.str] = None,
137
+ retry_interval: Optional[builtins.int] = None,
138
+ retry_timeout: Optional[builtins.int] = None,
139
+ vpc_id: Optional[builtins.str] = None,
110
140
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
111
141
  """
112
142
  The `get_network` data source can be used to discover the ID of a network in
@@ -151,12 +181,18 @@ def get_network(datacenter_id: Optional[builtins.str] = None,
151
181
  the distributed virtual switch ID.
152
182
  :param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
153
183
  :param builtins.str name: The name of the network. This can be a name or path.
184
+ :param builtins.int retry_interval: The interval in milliseconds to retry the read operation if `retry_timeout` is set. Default: 500.
185
+ :param builtins.int retry_timeout: The timeout duration in seconds for the data source to retry read operations.
186
+ :param builtins.str vpc_id: Select a VPC scope for retrieval of VPC subnets.
154
187
  """
155
188
  __args__ = dict()
156
189
  __args__['datacenterId'] = datacenter_id
157
190
  __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
158
191
  __args__['filters'] = filters
159
192
  __args__['name'] = name
193
+ __args__['retryInterval'] = retry_interval
194
+ __args__['retryTimeout'] = retry_timeout
195
+ __args__['vpcId'] = vpc_id
160
196
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
161
197
  __ret__ = pulumi.runtime.invoke('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult).value
162
198
 
@@ -166,11 +202,17 @@ def get_network(datacenter_id: Optional[builtins.str] = None,
166
202
  filters=pulumi.get(__ret__, 'filters'),
167
203
  id=pulumi.get(__ret__, 'id'),
168
204
  name=pulumi.get(__ret__, 'name'),
169
- type=pulumi.get(__ret__, 'type'))
205
+ retry_interval=pulumi.get(__ret__, 'retry_interval'),
206
+ retry_timeout=pulumi.get(__ret__, 'retry_timeout'),
207
+ type=pulumi.get(__ret__, 'type'),
208
+ vpc_id=pulumi.get(__ret__, 'vpc_id'))
170
209
  def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
171
210
  distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[builtins.str]]] = None,
172
211
  filters: Optional[pulumi.Input[Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]]]] = None,
173
212
  name: Optional[pulumi.Input[builtins.str]] = None,
213
+ retry_interval: Optional[pulumi.Input[Optional[builtins.int]]] = None,
214
+ retry_timeout: Optional[pulumi.Input[Optional[builtins.int]]] = None,
215
+ vpc_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
174
216
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNetworkResult]:
175
217
  """
176
218
  The `get_network` data source can be used to discover the ID of a network in
@@ -215,12 +257,18 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.st
215
257
  the distributed virtual switch ID.
216
258
  :param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
217
259
  :param builtins.str name: The name of the network. This can be a name or path.
260
+ :param builtins.int retry_interval: The interval in milliseconds to retry the read operation if `retry_timeout` is set. Default: 500.
261
+ :param builtins.int retry_timeout: The timeout duration in seconds for the data source to retry read operations.
262
+ :param builtins.str vpc_id: Select a VPC scope for retrieval of VPC subnets.
218
263
  """
219
264
  __args__ = dict()
220
265
  __args__['datacenterId'] = datacenter_id
221
266
  __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
222
267
  __args__['filters'] = filters
223
268
  __args__['name'] = name
269
+ __args__['retryInterval'] = retry_interval
270
+ __args__['retryTimeout'] = retry_timeout
271
+ __args__['vpcId'] = vpc_id
224
272
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
225
273
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
226
274
  return __ret__.apply(lambda __response__: GetNetworkResult(
@@ -229,4 +277,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.st
229
277
  filters=pulumi.get(__response__, 'filters'),
230
278
  id=pulumi.get(__response__, 'id'),
231
279
  name=pulumi.get(__response__, 'name'),
232
- type=pulumi.get(__response__, 'type')))
280
+ retry_interval=pulumi.get(__response__, 'retry_interval'),
281
+ retry_timeout=pulumi.get(__response__, 'retry_timeout'),
282
+ type=pulumi.get(__response__, 'type'),
283
+ vpc_id=pulumi.get(__response__, 'vpc_id')))
@@ -1,5 +1,5 @@
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
5
  import builtins
@@ -400,8 +400,8 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[builtins.bool] = Non
400
400
  :param builtins.str deployment_option: The key of the chosen deployment option. If
401
401
  empty, the default option is chosen.
402
402
  :param builtins.str disk_provisioning: The disk provisioning type. If set, all the
403
- disks in the deployed OVA/OVF will have the same specified disk type. Can be
404
- one of `thin`, `flat`, `thick` or `sameAsSource`.
403
+ disks included in the OVF/OVA will have the same specified policy. Can be
404
+ one of `thin`, `thick`, `eagerZeroedThick`, or `sameAsSource`.
405
405
  :param builtins.bool enable_hidden_properties: Allow properties with
406
406
  `ovf:userConfigurable=false` to be set.
407
407
  :param builtins.str folder: The name of the folder in which to place the virtual
@@ -503,8 +503,8 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[
503
503
  :param builtins.str deployment_option: The key of the chosen deployment option. If
504
504
  empty, the default option is chosen.
505
505
  :param builtins.str disk_provisioning: The disk provisioning type. If set, all the
506
- disks in the deployed OVA/OVF will have the same specified disk type. Can be
507
- one of `thin`, `flat`, `thick` or `sameAsSource`.
506
+ disks included in the OVF/OVA will have the same specified policy. Can be
507
+ one of `thin`, `thick`, `eagerZeroedThick`, or `sameAsSource`.
508
508
  :param builtins.bool enable_hidden_properties: Allow properties with
509
509
  `ovf:userConfigurable=false` to be set.
510
510
  :param builtins.str folder: The name of the folder in which to place the virtual
@@ -1,5 +1,5 @@
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
5
  import builtins