pulumi-vsphere 4.11.0a1715339766__py3-none-any.whl → 4.11.0a1715766364__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.
- pulumi_vsphere/__init__.py +28 -0
- pulumi_vsphere/_inputs.py +458 -0
- pulumi_vsphere/compute_cluster.py +47 -0
- pulumi_vsphere/folder.py +7 -7
- pulumi_vsphere/get_folder.py +10 -2
- pulumi_vsphere/get_host_base_images.py +97 -0
- pulumi_vsphere/offline_software_depot.py +180 -0
- pulumi_vsphere/outputs.py +447 -0
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/supervisor.py +858 -0
- pulumi_vsphere/virtual_machine_class.py +440 -0
- {pulumi_vsphere-4.11.0a1715339766.dist-info → pulumi_vsphere-4.11.0a1715766364.dist-info}/METADATA +1 -1
- {pulumi_vsphere-4.11.0a1715339766.dist-info → pulumi_vsphere-4.11.0a1715766364.dist-info}/RECORD +15 -11
- {pulumi_vsphere-4.11.0a1715339766.dist-info → pulumi_vsphere-4.11.0a1715766364.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.11.0a1715339766.dist-info → pulumi_vsphere-4.11.0a1715766364.dist-info}/top_level.txt +0 -0
|
@@ -61,6 +61,7 @@ class ComputeClusterArgs:
|
|
|
61
61
|
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
62
62
|
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
63
63
|
host_cluster_exit_timeout: Optional[pulumi.Input[int]] = None,
|
|
64
|
+
host_image: Optional[pulumi.Input['ComputeClusterHostImageArgs']] = None,
|
|
64
65
|
host_managed: Optional[pulumi.Input[bool]] = None,
|
|
65
66
|
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
66
67
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -176,6 +177,7 @@ class ComputeClusterArgs:
|
|
|
176
177
|
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for virtual machines in one priority to be ready before
|
|
177
178
|
proceeding with the next priority.
|
|
178
179
|
:param pulumi.Input[int] host_cluster_exit_timeout: The timeout for each host maintenance mode operation when removing hosts from a cluster.
|
|
180
|
+
:param pulumi.Input['ComputeClusterHostImageArgs'] host_image: Details about the host image which should be applied to the cluster.
|
|
179
181
|
:param pulumi.Input[bool] host_managed: Must be set if cluster enrollment is managed from host resource.
|
|
180
182
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] host_system_ids: The managed object IDs of the hosts to put in the cluster.
|
|
181
183
|
:param pulumi.Input[str] name: The name of the cluster.
|
|
@@ -291,6 +293,8 @@ class ComputeClusterArgs:
|
|
|
291
293
|
pulumi.set(__self__, "ha_vm_restart_timeout", ha_vm_restart_timeout)
|
|
292
294
|
if host_cluster_exit_timeout is not None:
|
|
293
295
|
pulumi.set(__self__, "host_cluster_exit_timeout", host_cluster_exit_timeout)
|
|
296
|
+
if host_image is not None:
|
|
297
|
+
pulumi.set(__self__, "host_image", host_image)
|
|
294
298
|
if host_managed is not None:
|
|
295
299
|
pulumi.set(__self__, "host_managed", host_managed)
|
|
296
300
|
if host_system_ids is not None:
|
|
@@ -923,6 +927,18 @@ class ComputeClusterArgs:
|
|
|
923
927
|
def host_cluster_exit_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
924
928
|
pulumi.set(self, "host_cluster_exit_timeout", value)
|
|
925
929
|
|
|
930
|
+
@property
|
|
931
|
+
@pulumi.getter(name="hostImage")
|
|
932
|
+
def host_image(self) -> Optional[pulumi.Input['ComputeClusterHostImageArgs']]:
|
|
933
|
+
"""
|
|
934
|
+
Details about the host image which should be applied to the cluster.
|
|
935
|
+
"""
|
|
936
|
+
return pulumi.get(self, "host_image")
|
|
937
|
+
|
|
938
|
+
@host_image.setter
|
|
939
|
+
def host_image(self, value: Optional[pulumi.Input['ComputeClusterHostImageArgs']]):
|
|
940
|
+
pulumi.set(self, "host_image", value)
|
|
941
|
+
|
|
926
942
|
@property
|
|
927
943
|
@pulumi.getter(name="hostManaged")
|
|
928
944
|
def host_managed(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -1250,6 +1266,7 @@ class _ComputeClusterState:
|
|
|
1250
1266
|
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
1251
1267
|
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
1252
1268
|
host_cluster_exit_timeout: Optional[pulumi.Input[int]] = None,
|
|
1269
|
+
host_image: Optional[pulumi.Input['ComputeClusterHostImageArgs']] = None,
|
|
1253
1270
|
host_managed: Optional[pulumi.Input[bool]] = None,
|
|
1254
1271
|
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1255
1272
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -1366,6 +1383,7 @@ class _ComputeClusterState:
|
|
|
1366
1383
|
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for virtual machines in one priority to be ready before
|
|
1367
1384
|
proceeding with the next priority.
|
|
1368
1385
|
:param pulumi.Input[int] host_cluster_exit_timeout: The timeout for each host maintenance mode operation when removing hosts from a cluster.
|
|
1386
|
+
:param pulumi.Input['ComputeClusterHostImageArgs'] host_image: Details about the host image which should be applied to the cluster.
|
|
1369
1387
|
:param pulumi.Input[bool] host_managed: Must be set if cluster enrollment is managed from host resource.
|
|
1370
1388
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] host_system_ids: The managed object IDs of the hosts to put in the cluster.
|
|
1371
1389
|
:param pulumi.Input[str] name: The name of the cluster.
|
|
@@ -1487,6 +1505,8 @@ class _ComputeClusterState:
|
|
|
1487
1505
|
pulumi.set(__self__, "ha_vm_restart_timeout", ha_vm_restart_timeout)
|
|
1488
1506
|
if host_cluster_exit_timeout is not None:
|
|
1489
1507
|
pulumi.set(__self__, "host_cluster_exit_timeout", host_cluster_exit_timeout)
|
|
1508
|
+
if host_image is not None:
|
|
1509
|
+
pulumi.set(__self__, "host_image", host_image)
|
|
1490
1510
|
if host_managed is not None:
|
|
1491
1511
|
pulumi.set(__self__, "host_managed", host_managed)
|
|
1492
1512
|
if host_system_ids is not None:
|
|
@@ -2121,6 +2141,18 @@ class _ComputeClusterState:
|
|
|
2121
2141
|
def host_cluster_exit_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
2122
2142
|
pulumi.set(self, "host_cluster_exit_timeout", value)
|
|
2123
2143
|
|
|
2144
|
+
@property
|
|
2145
|
+
@pulumi.getter(name="hostImage")
|
|
2146
|
+
def host_image(self) -> Optional[pulumi.Input['ComputeClusterHostImageArgs']]:
|
|
2147
|
+
"""
|
|
2148
|
+
Details about the host image which should be applied to the cluster.
|
|
2149
|
+
"""
|
|
2150
|
+
return pulumi.get(self, "host_image")
|
|
2151
|
+
|
|
2152
|
+
@host_image.setter
|
|
2153
|
+
def host_image(self, value: Optional[pulumi.Input['ComputeClusterHostImageArgs']]):
|
|
2154
|
+
pulumi.set(self, "host_image", value)
|
|
2155
|
+
|
|
2124
2156
|
@property
|
|
2125
2157
|
@pulumi.getter(name="hostManaged")
|
|
2126
2158
|
def host_managed(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -2466,6 +2498,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
2466
2498
|
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
2467
2499
|
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
2468
2500
|
host_cluster_exit_timeout: Optional[pulumi.Input[int]] = None,
|
|
2501
|
+
host_image: Optional[pulumi.Input[pulumi.InputType['ComputeClusterHostImageArgs']]] = None,
|
|
2469
2502
|
host_managed: Optional[pulumi.Input[bool]] = None,
|
|
2470
2503
|
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
2471
2504
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -2584,6 +2617,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
2584
2617
|
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for virtual machines in one priority to be ready before
|
|
2585
2618
|
proceeding with the next priority.
|
|
2586
2619
|
:param pulumi.Input[int] host_cluster_exit_timeout: The timeout for each host maintenance mode operation when removing hosts from a cluster.
|
|
2620
|
+
:param pulumi.Input[pulumi.InputType['ComputeClusterHostImageArgs']] host_image: Details about the host image which should be applied to the cluster.
|
|
2587
2621
|
:param pulumi.Input[bool] host_managed: Must be set if cluster enrollment is managed from host resource.
|
|
2588
2622
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] host_system_ids: The managed object IDs of the hosts to put in the cluster.
|
|
2589
2623
|
:param pulumi.Input[str] name: The name of the cluster.
|
|
@@ -2678,6 +2712,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
2678
2712
|
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
2679
2713
|
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
2680
2714
|
host_cluster_exit_timeout: Optional[pulumi.Input[int]] = None,
|
|
2715
|
+
host_image: Optional[pulumi.Input[pulumi.InputType['ComputeClusterHostImageArgs']]] = None,
|
|
2681
2716
|
host_managed: Optional[pulumi.Input[bool]] = None,
|
|
2682
2717
|
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
2683
2718
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -2757,6 +2792,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
2757
2792
|
__props__.__dict__["ha_vm_restart_priority"] = ha_vm_restart_priority
|
|
2758
2793
|
__props__.__dict__["ha_vm_restart_timeout"] = ha_vm_restart_timeout
|
|
2759
2794
|
__props__.__dict__["host_cluster_exit_timeout"] = host_cluster_exit_timeout
|
|
2795
|
+
__props__.__dict__["host_image"] = host_image
|
|
2760
2796
|
__props__.__dict__["host_managed"] = host_managed
|
|
2761
2797
|
__props__.__dict__["host_system_ids"] = host_system_ids
|
|
2762
2798
|
__props__.__dict__["name"] = name
|
|
@@ -2836,6 +2872,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
2836
2872
|
ha_vm_restart_priority: Optional[pulumi.Input[str]] = None,
|
|
2837
2873
|
ha_vm_restart_timeout: Optional[pulumi.Input[int]] = None,
|
|
2838
2874
|
host_cluster_exit_timeout: Optional[pulumi.Input[int]] = None,
|
|
2875
|
+
host_image: Optional[pulumi.Input[pulumi.InputType['ComputeClusterHostImageArgs']]] = None,
|
|
2839
2876
|
host_managed: Optional[pulumi.Input[bool]] = None,
|
|
2840
2877
|
host_system_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
2841
2878
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -2957,6 +2994,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
2957
2994
|
:param pulumi.Input[int] ha_vm_restart_timeout: The maximum time, in seconds, that vSphere HA will wait for virtual machines in one priority to be ready before
|
|
2958
2995
|
proceeding with the next priority.
|
|
2959
2996
|
:param pulumi.Input[int] host_cluster_exit_timeout: The timeout for each host maintenance mode operation when removing hosts from a cluster.
|
|
2997
|
+
:param pulumi.Input[pulumi.InputType['ComputeClusterHostImageArgs']] host_image: Details about the host image which should be applied to the cluster.
|
|
2960
2998
|
:param pulumi.Input[bool] host_managed: Must be set if cluster enrollment is managed from host resource.
|
|
2961
2999
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] host_system_ids: The managed object IDs of the hosts to put in the cluster.
|
|
2962
3000
|
:param pulumi.Input[str] name: The name of the cluster.
|
|
@@ -3037,6 +3075,7 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
3037
3075
|
__props__.__dict__["ha_vm_restart_priority"] = ha_vm_restart_priority
|
|
3038
3076
|
__props__.__dict__["ha_vm_restart_timeout"] = ha_vm_restart_timeout
|
|
3039
3077
|
__props__.__dict__["host_cluster_exit_timeout"] = host_cluster_exit_timeout
|
|
3078
|
+
__props__.__dict__["host_image"] = host_image
|
|
3040
3079
|
__props__.__dict__["host_managed"] = host_managed
|
|
3041
3080
|
__props__.__dict__["host_system_ids"] = host_system_ids
|
|
3042
3081
|
__props__.__dict__["name"] = name
|
|
@@ -3468,6 +3507,14 @@ class ComputeCluster(pulumi.CustomResource):
|
|
|
3468
3507
|
"""
|
|
3469
3508
|
return pulumi.get(self, "host_cluster_exit_timeout")
|
|
3470
3509
|
|
|
3510
|
+
@property
|
|
3511
|
+
@pulumi.getter(name="hostImage")
|
|
3512
|
+
def host_image(self) -> pulumi.Output[Optional['outputs.ComputeClusterHostImage']]:
|
|
3513
|
+
"""
|
|
3514
|
+
Details about the host image which should be applied to the cluster.
|
|
3515
|
+
"""
|
|
3516
|
+
return pulumi.get(self, "host_image")
|
|
3517
|
+
|
|
3471
3518
|
@property
|
|
3472
3519
|
@pulumi.getter(name="hostManaged")
|
|
3473
3520
|
def host_managed(self) -> pulumi.Output[Optional[bool]]:
|
pulumi_vsphere/folder.py
CHANGED
|
@@ -36,7 +36,7 @@ class FolderArgs:
|
|
|
36
36
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
37
37
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
38
38
|
`network` for network folders. Forces a new resource if changed.
|
|
39
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
39
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
40
40
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
41
41
|
for a reference on how to set values for custom attributes.
|
|
42
42
|
|
|
@@ -102,7 +102,7 @@ class FolderArgs:
|
|
|
102
102
|
@pulumi.getter(name="customAttributes")
|
|
103
103
|
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
104
104
|
"""
|
|
105
|
-
Map of custom attribute ids to attribute
|
|
105
|
+
Map of custom attribute ids to attribute
|
|
106
106
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
107
107
|
for a reference on how to set values for custom attributes.
|
|
108
108
|
|
|
@@ -157,7 +157,7 @@ class _FolderState:
|
|
|
157
157
|
type: Optional[pulumi.Input[str]] = None):
|
|
158
158
|
"""
|
|
159
159
|
Input properties used for looking up and filtering Folder resources.
|
|
160
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
160
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
161
161
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
162
162
|
for a reference on how to set values for custom attributes.
|
|
163
163
|
|
|
@@ -203,7 +203,7 @@ class _FolderState:
|
|
|
203
203
|
@pulumi.getter(name="customAttributes")
|
|
204
204
|
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
205
205
|
"""
|
|
206
|
-
Map of custom attribute ids to attribute
|
|
206
|
+
Map of custom attribute ids to attribute
|
|
207
207
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
208
208
|
for a reference on how to set values for custom attributes.
|
|
209
209
|
|
|
@@ -300,7 +300,7 @@ class Folder(pulumi.CustomResource):
|
|
|
300
300
|
Create a Folder resource with the given unique name, props, and options.
|
|
301
301
|
:param str resource_name: The name of the resource.
|
|
302
302
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
303
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
303
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
304
304
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
305
305
|
for a reference on how to set values for custom attributes.
|
|
306
306
|
|
|
@@ -399,7 +399,7 @@ class Folder(pulumi.CustomResource):
|
|
|
399
399
|
:param str resource_name: The unique name of the resulting resource.
|
|
400
400
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
401
401
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
402
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
402
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
403
403
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
404
404
|
for a reference on how to set values for custom attributes.
|
|
405
405
|
|
|
@@ -445,7 +445,7 @@ class Folder(pulumi.CustomResource):
|
|
|
445
445
|
@pulumi.getter(name="customAttributes")
|
|
446
446
|
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
447
447
|
"""
|
|
448
|
-
Map of custom attribute ids to attribute
|
|
448
|
+
Map of custom attribute ids to attribute
|
|
449
449
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
450
450
|
for a reference on how to set values for custom attributes.
|
|
451
451
|
|
pulumi_vsphere/get_folder.py
CHANGED
|
@@ -57,7 +57,11 @@ def get_folder(path: Optional[str] = None,
|
|
|
57
57
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetFolderResult:
|
|
58
58
|
"""
|
|
59
59
|
The `Folder` data source can be used to get the general attributes of a
|
|
60
|
-
vSphere inventory folder.
|
|
60
|
+
vSphere inventory folder. The data source supports creating folders of the 5
|
|
61
|
+
major types - datacenter folders, host and cluster folders, virtual machine
|
|
62
|
+
folders, storage folders, and network folders.
|
|
63
|
+
|
|
64
|
+
Paths are absolute and must include the datacenter.
|
|
61
65
|
|
|
62
66
|
## Example Usage
|
|
63
67
|
|
|
@@ -90,7 +94,11 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None,
|
|
|
90
94
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFolderResult]:
|
|
91
95
|
"""
|
|
92
96
|
The `Folder` data source can be used to get the general attributes of a
|
|
93
|
-
vSphere inventory folder.
|
|
97
|
+
vSphere inventory folder. The data source supports creating folders of the 5
|
|
98
|
+
major types - datacenter folders, host and cluster folders, virtual machine
|
|
99
|
+
folders, storage folders, and network folders.
|
|
100
|
+
|
|
101
|
+
Paths are absolute and must include the datacenter.
|
|
94
102
|
|
|
95
103
|
## Example Usage
|
|
96
104
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
'GetHostBaseImagesResult',
|
|
14
|
+
'AwaitableGetHostBaseImagesResult',
|
|
15
|
+
'get_host_base_images',
|
|
16
|
+
'get_host_base_images_output',
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
@pulumi.output_type
|
|
20
|
+
class GetHostBaseImagesResult:
|
|
21
|
+
"""
|
|
22
|
+
A collection of values returned by getHostBaseImages.
|
|
23
|
+
"""
|
|
24
|
+
def __init__(__self__, id=None, versions=None):
|
|
25
|
+
if id and not isinstance(id, str):
|
|
26
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
27
|
+
pulumi.set(__self__, "id", id)
|
|
28
|
+
if versions and not isinstance(versions, list):
|
|
29
|
+
raise TypeError("Expected argument 'versions' to be a list")
|
|
30
|
+
pulumi.set(__self__, "versions", versions)
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
@pulumi.getter
|
|
34
|
+
def id(self) -> str:
|
|
35
|
+
"""
|
|
36
|
+
The provider-assigned unique ID for this managed resource.
|
|
37
|
+
"""
|
|
38
|
+
return pulumi.get(self, "id")
|
|
39
|
+
|
|
40
|
+
@property
|
|
41
|
+
@pulumi.getter
|
|
42
|
+
def versions(self) -> Sequence[str]:
|
|
43
|
+
"""
|
|
44
|
+
The ESXi version identifier for the image
|
|
45
|
+
"""
|
|
46
|
+
return pulumi.get(self, "versions")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class AwaitableGetHostBaseImagesResult(GetHostBaseImagesResult):
|
|
50
|
+
# pylint: disable=using-constant-test
|
|
51
|
+
def __await__(self):
|
|
52
|
+
if False:
|
|
53
|
+
yield self
|
|
54
|
+
return GetHostBaseImagesResult(
|
|
55
|
+
id=self.id,
|
|
56
|
+
versions=self.versions)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def get_host_base_images(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHostBaseImagesResult:
|
|
60
|
+
"""
|
|
61
|
+
The `get_host_base_images` data source can be used to get the list of ESXi base images available
|
|
62
|
+
for cluster software management.
|
|
63
|
+
|
|
64
|
+
## Example Usage
|
|
65
|
+
|
|
66
|
+
```python
|
|
67
|
+
import pulumi
|
|
68
|
+
import pulumi_vsphere as vsphere
|
|
69
|
+
|
|
70
|
+
baseimages = vsphere.get_host_base_images()
|
|
71
|
+
```
|
|
72
|
+
"""
|
|
73
|
+
__args__ = dict()
|
|
74
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
75
|
+
__ret__ = pulumi.runtime.invoke('vsphere:index/getHostBaseImages:getHostBaseImages', __args__, opts=opts, typ=GetHostBaseImagesResult).value
|
|
76
|
+
|
|
77
|
+
return AwaitableGetHostBaseImagesResult(
|
|
78
|
+
id=pulumi.get(__ret__, 'id'),
|
|
79
|
+
versions=pulumi.get(__ret__, 'versions'))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@_utilities.lift_output_func(get_host_base_images)
|
|
83
|
+
def get_host_base_images_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetHostBaseImagesResult]:
|
|
84
|
+
"""
|
|
85
|
+
The `get_host_base_images` data source can be used to get the list of ESXi base images available
|
|
86
|
+
for cluster software management.
|
|
87
|
+
|
|
88
|
+
## Example Usage
|
|
89
|
+
|
|
90
|
+
```python
|
|
91
|
+
import pulumi
|
|
92
|
+
import pulumi_vsphere as vsphere
|
|
93
|
+
|
|
94
|
+
baseimages = vsphere.get_host_base_images()
|
|
95
|
+
```
|
|
96
|
+
"""
|
|
97
|
+
...
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
13
|
+
|
|
14
|
+
__all__ = ['OfflineSoftwareDepotArgs', 'OfflineSoftwareDepot']
|
|
15
|
+
|
|
16
|
+
@pulumi.input_type
|
|
17
|
+
class OfflineSoftwareDepotArgs:
|
|
18
|
+
def __init__(__self__, *,
|
|
19
|
+
location: pulumi.Input[str]):
|
|
20
|
+
"""
|
|
21
|
+
The set of arguments for constructing a OfflineSoftwareDepot resource.
|
|
22
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
23
|
+
"""
|
|
24
|
+
pulumi.set(__self__, "location", location)
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
@pulumi.getter
|
|
28
|
+
def location(self) -> pulumi.Input[str]:
|
|
29
|
+
"""
|
|
30
|
+
The URL where the depot source is hosted.
|
|
31
|
+
"""
|
|
32
|
+
return pulumi.get(self, "location")
|
|
33
|
+
|
|
34
|
+
@location.setter
|
|
35
|
+
def location(self, value: pulumi.Input[str]):
|
|
36
|
+
pulumi.set(self, "location", value)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@pulumi.input_type
|
|
40
|
+
class _OfflineSoftwareDepotState:
|
|
41
|
+
def __init__(__self__, *,
|
|
42
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]] = None,
|
|
43
|
+
location: Optional[pulumi.Input[str]] = None):
|
|
44
|
+
"""
|
|
45
|
+
Input properties used for looking up and filtering OfflineSoftwareDepot resources.
|
|
46
|
+
:param pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]] components: The list of custom components in the depot.
|
|
47
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
48
|
+
"""
|
|
49
|
+
if components is not None:
|
|
50
|
+
pulumi.set(__self__, "components", components)
|
|
51
|
+
if location is not None:
|
|
52
|
+
pulumi.set(__self__, "location", location)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
@pulumi.getter
|
|
56
|
+
def components(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]]:
|
|
57
|
+
"""
|
|
58
|
+
The list of custom components in the depot.
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "components")
|
|
61
|
+
|
|
62
|
+
@components.setter
|
|
63
|
+
def components(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]]):
|
|
64
|
+
pulumi.set(self, "components", value)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
|
69
|
+
"""
|
|
70
|
+
The URL where the depot source is hosted.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "location")
|
|
73
|
+
|
|
74
|
+
@location.setter
|
|
75
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
|
76
|
+
pulumi.set(self, "location", value)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class OfflineSoftwareDepot(pulumi.CustomResource):
|
|
80
|
+
@overload
|
|
81
|
+
def __init__(__self__,
|
|
82
|
+
resource_name: str,
|
|
83
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
84
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
85
|
+
__props__=None):
|
|
86
|
+
"""
|
|
87
|
+
Provides a VMware vSphere offline software depot resource.
|
|
88
|
+
|
|
89
|
+
## Example Usage
|
|
90
|
+
|
|
91
|
+
:param str resource_name: The name of the resource.
|
|
92
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
93
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
94
|
+
"""
|
|
95
|
+
...
|
|
96
|
+
@overload
|
|
97
|
+
def __init__(__self__,
|
|
98
|
+
resource_name: str,
|
|
99
|
+
args: OfflineSoftwareDepotArgs,
|
|
100
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
101
|
+
"""
|
|
102
|
+
Provides a VMware vSphere offline software depot resource.
|
|
103
|
+
|
|
104
|
+
## Example Usage
|
|
105
|
+
|
|
106
|
+
:param str resource_name: The name of the resource.
|
|
107
|
+
:param OfflineSoftwareDepotArgs args: The arguments to use to populate this resource's properties.
|
|
108
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
109
|
+
"""
|
|
110
|
+
...
|
|
111
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
112
|
+
resource_args, opts = _utilities.get_resource_args_opts(OfflineSoftwareDepotArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
113
|
+
if resource_args is not None:
|
|
114
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
115
|
+
else:
|
|
116
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
117
|
+
|
|
118
|
+
def _internal_init(__self__,
|
|
119
|
+
resource_name: str,
|
|
120
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
121
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
122
|
+
__props__=None):
|
|
123
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
124
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
125
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
126
|
+
if opts.id is None:
|
|
127
|
+
if __props__ is not None:
|
|
128
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
129
|
+
__props__ = OfflineSoftwareDepotArgs.__new__(OfflineSoftwareDepotArgs)
|
|
130
|
+
|
|
131
|
+
if location is None and not opts.urn:
|
|
132
|
+
raise TypeError("Missing required property 'location'")
|
|
133
|
+
__props__.__dict__["location"] = location
|
|
134
|
+
__props__.__dict__["components"] = None
|
|
135
|
+
super(OfflineSoftwareDepot, __self__).__init__(
|
|
136
|
+
'vsphere:index/offlineSoftwareDepot:OfflineSoftwareDepot',
|
|
137
|
+
resource_name,
|
|
138
|
+
__props__,
|
|
139
|
+
opts)
|
|
140
|
+
|
|
141
|
+
@staticmethod
|
|
142
|
+
def get(resource_name: str,
|
|
143
|
+
id: pulumi.Input[str],
|
|
144
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
145
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]]] = None,
|
|
146
|
+
location: Optional[pulumi.Input[str]] = None) -> 'OfflineSoftwareDepot':
|
|
147
|
+
"""
|
|
148
|
+
Get an existing OfflineSoftwareDepot resource's state with the given name, id, and optional extra
|
|
149
|
+
properties used to qualify the lookup.
|
|
150
|
+
|
|
151
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
152
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
153
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
154
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]] components: The list of custom components in the depot.
|
|
155
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
156
|
+
"""
|
|
157
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
158
|
+
|
|
159
|
+
__props__ = _OfflineSoftwareDepotState.__new__(_OfflineSoftwareDepotState)
|
|
160
|
+
|
|
161
|
+
__props__.__dict__["components"] = components
|
|
162
|
+
__props__.__dict__["location"] = location
|
|
163
|
+
return OfflineSoftwareDepot(resource_name, opts=opts, __props__=__props__)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def components(self) -> pulumi.Output[Sequence['outputs.OfflineSoftwareDepotComponent']]:
|
|
168
|
+
"""
|
|
169
|
+
The list of custom components in the depot.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "components")
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter
|
|
175
|
+
def location(self) -> pulumi.Output[str]:
|
|
176
|
+
"""
|
|
177
|
+
The URL where the depot source is hosted.
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "location")
|
|
180
|
+
|