pulumi-vsphere 4.9.0a1698441837__py3-none-any.whl → 4.9.0a1698968062__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/_inputs.py +128 -811
- pulumi_vsphere/_utilities.py +0 -19
- pulumi_vsphere/compute_cluster.py +132 -668
- pulumi_vsphere/compute_cluster_host_group.py +7 -51
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +11 -65
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +11 -65
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +13 -77
- pulumi_vsphere/compute_cluster_vm_group.py +7 -51
- pulumi_vsphere/compute_cluster_vm_host_rule.py +15 -85
- pulumi_vsphere/config/vars.py +1 -1
- pulumi_vsphere/content_library.py +11 -61
- pulumi_vsphere/content_library_item.py +13 -73
- pulumi_vsphere/custom_attribute.py +5 -39
- pulumi_vsphere/datacenter.py +10 -54
- pulumi_vsphere/datastore_cluster.py +51 -263
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +11 -65
- pulumi_vsphere/distributed_port_group.py +95 -473
- pulumi_vsphere/distributed_virtual_switch.py +190 -938
- pulumi_vsphere/dpm_host_override.py +9 -67
- pulumi_vsphere/drs_vm_override.py +9 -67
- pulumi_vsphere/entity_permissions.py +7 -55
- pulumi_vsphere/file.py +15 -91
- pulumi_vsphere/folder.py +11 -65
- pulumi_vsphere/get_compute_cluster.py +1 -1
- pulumi_vsphere/get_compute_cluster_host_group.py +1 -1
- pulumi_vsphere/get_content_library.py +1 -1
- pulumi_vsphere/get_content_library_item.py +1 -1
- pulumi_vsphere/get_custom_attribute.py +1 -1
- pulumi_vsphere/get_datacenter.py +1 -1
- pulumi_vsphere/get_datastore.py +1 -1
- pulumi_vsphere/get_datastore_cluster.py +1 -1
- pulumi_vsphere/get_distributed_virtual_switch.py +1 -1
- pulumi_vsphere/get_dynamic.py +1 -1
- pulumi_vsphere/get_folder.py +1 -1
- pulumi_vsphere/get_host.py +1 -1
- pulumi_vsphere/get_host_pci_device.py +1 -1
- pulumi_vsphere/get_host_thumbprint.py +1 -1
- pulumi_vsphere/get_license.py +1 -1
- pulumi_vsphere/get_network.py +1 -1
- pulumi_vsphere/get_ovf_vm_template.py +1 -1
- pulumi_vsphere/get_policy.py +1 -1
- pulumi_vsphere/get_resource_pool.py +1 -1
- pulumi_vsphere/get_role.py +1 -1
- pulumi_vsphere/get_tag.py +1 -1
- pulumi_vsphere/get_tag_category.py +1 -1
- pulumi_vsphere/get_vapp_container.py +1 -1
- pulumi_vsphere/get_virtual_machine.py +1 -1
- pulumi_vsphere/get_vmfs_disks.py +1 -1
- pulumi_vsphere/ha_vm_override.py +31 -177
- pulumi_vsphere/host.py +29 -121
- pulumi_vsphere/host_port_group.py +38 -200
- pulumi_vsphere/host_virtual_switch.py +43 -227
- pulumi_vsphere/license.py +9 -55
- pulumi_vsphere/nas_datastore.py +31 -157
- pulumi_vsphere/outputs.py +140 -903
- pulumi_vsphere/provider.py +14 -79
- pulumi_vsphere/resource_pool.py +31 -167
- pulumi_vsphere/role.py +6 -42
- pulumi_vsphere/storage_drs_vm_override.py +11 -77
- pulumi_vsphere/tag.py +7 -47
- pulumi_vsphere/tag_category.py +9 -55
- pulumi_vsphere/vapp_container.py +31 -167
- pulumi_vsphere/vapp_entity.py +21 -123
- pulumi_vsphere/virtual_disk.py +15 -83
- pulumi_vsphere/virtual_machine.py +160 -777
- pulumi_vsphere/virtual_machine_snapshot.py +15 -87
- pulumi_vsphere/vm_storage_policy.py +7 -47
- pulumi_vsphere/vmfs_datastore.py +22 -110
- pulumi_vsphere/vnic.py +21 -95
- {pulumi_vsphere-4.9.0a1698441837.dist-info → pulumi_vsphere-4.9.0a1698968062.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.9.0a1698968062.dist-info/RECORD +77 -0
- {pulumi_vsphere-4.9.0a1698441837.dist-info → pulumi_vsphere-4.9.0a1698968062.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.9.0a1698441837.dist-info/RECORD +0 -77
- {pulumi_vsphere-4.9.0a1698441837.dist-info → pulumi_vsphere-4.9.0a1698968062.dist-info}/top_level.txt +0 -0
pulumi_vsphere/tag.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any,
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['TagArgs', 'Tag']
|
|
@@ -25,30 +25,11 @@ class TagArgs:
|
|
|
25
25
|
:param pulumi.Input[str] name: The display name of the tag. The name must be unique
|
|
26
26
|
within its category.
|
|
27
27
|
"""
|
|
28
|
-
|
|
29
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
|
30
|
-
category_id=category_id,
|
|
31
|
-
description=description,
|
|
32
|
-
name=name,
|
|
33
|
-
)
|
|
34
|
-
@staticmethod
|
|
35
|
-
def _configure(
|
|
36
|
-
_setter: Callable[[Any, Any], None],
|
|
37
|
-
category_id: Optional[pulumi.Input[str]] = None,
|
|
38
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
39
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
40
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
41
|
-
**kwargs):
|
|
42
|
-
if category_id is None and 'categoryId' in kwargs:
|
|
43
|
-
category_id = kwargs['categoryId']
|
|
44
|
-
if category_id is None:
|
|
45
|
-
raise TypeError("Missing 'category_id' argument")
|
|
46
|
-
|
|
47
|
-
_setter("category_id", category_id)
|
|
28
|
+
pulumi.set(__self__, "category_id", category_id)
|
|
48
29
|
if description is not None:
|
|
49
|
-
|
|
30
|
+
pulumi.set(__self__, "description", description)
|
|
50
31
|
if name is not None:
|
|
51
|
-
|
|
32
|
+
pulumi.set(__self__, "name", name)
|
|
52
33
|
|
|
53
34
|
@property
|
|
54
35
|
@pulumi.getter(name="categoryId")
|
|
@@ -103,29 +84,12 @@ class _TagState:
|
|
|
103
84
|
:param pulumi.Input[str] name: The display name of the tag. The name must be unique
|
|
104
85
|
within its category.
|
|
105
86
|
"""
|
|
106
|
-
_TagState._configure(
|
|
107
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
|
108
|
-
category_id=category_id,
|
|
109
|
-
description=description,
|
|
110
|
-
name=name,
|
|
111
|
-
)
|
|
112
|
-
@staticmethod
|
|
113
|
-
def _configure(
|
|
114
|
-
_setter: Callable[[Any, Any], None],
|
|
115
|
-
category_id: Optional[pulumi.Input[str]] = None,
|
|
116
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
117
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
118
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
119
|
-
**kwargs):
|
|
120
|
-
if category_id is None and 'categoryId' in kwargs:
|
|
121
|
-
category_id = kwargs['categoryId']
|
|
122
|
-
|
|
123
87
|
if category_id is not None:
|
|
124
|
-
|
|
88
|
+
pulumi.set(__self__, "category_id", category_id)
|
|
125
89
|
if description is not None:
|
|
126
|
-
|
|
90
|
+
pulumi.set(__self__, "description", description)
|
|
127
91
|
if name is not None:
|
|
128
|
-
|
|
92
|
+
pulumi.set(__self__, "name", name)
|
|
129
93
|
|
|
130
94
|
@property
|
|
131
95
|
@pulumi.getter(name="categoryId")
|
|
@@ -203,10 +167,6 @@ class Tag(pulumi.CustomResource):
|
|
|
203
167
|
if resource_args is not None:
|
|
204
168
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
205
169
|
else:
|
|
206
|
-
kwargs = kwargs or {}
|
|
207
|
-
def _setter(key, value):
|
|
208
|
-
kwargs[key] = value
|
|
209
|
-
TagArgs._configure(_setter, **kwargs)
|
|
210
170
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
211
171
|
|
|
212
172
|
def _internal_init(__self__,
|
pulumi_vsphere/tag_category.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any,
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['TagCategoryArgs', 'TagCategory']
|
|
@@ -33,35 +33,12 @@ class TagCategoryArgs:
|
|
|
33
33
|
them. Attempting to do so will result in an error.
|
|
34
34
|
:param pulumi.Input[str] name: The name of the category.
|
|
35
35
|
"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
associable_types=associable_types,
|
|
39
|
-
cardinality=cardinality,
|
|
40
|
-
description=description,
|
|
41
|
-
name=name,
|
|
42
|
-
)
|
|
43
|
-
@staticmethod
|
|
44
|
-
def _configure(
|
|
45
|
-
_setter: Callable[[Any, Any], None],
|
|
46
|
-
associable_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
47
|
-
cardinality: Optional[pulumi.Input[str]] = None,
|
|
48
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
49
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
50
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
51
|
-
**kwargs):
|
|
52
|
-
if associable_types is None and 'associableTypes' in kwargs:
|
|
53
|
-
associable_types = kwargs['associableTypes']
|
|
54
|
-
if associable_types is None:
|
|
55
|
-
raise TypeError("Missing 'associable_types' argument")
|
|
56
|
-
if cardinality is None:
|
|
57
|
-
raise TypeError("Missing 'cardinality' argument")
|
|
58
|
-
|
|
59
|
-
_setter("associable_types", associable_types)
|
|
60
|
-
_setter("cardinality", cardinality)
|
|
36
|
+
pulumi.set(__self__, "associable_types", associable_types)
|
|
37
|
+
pulumi.set(__self__, "cardinality", cardinality)
|
|
61
38
|
if description is not None:
|
|
62
|
-
|
|
39
|
+
pulumi.set(__self__, "description", description)
|
|
63
40
|
if name is not None:
|
|
64
|
-
|
|
41
|
+
pulumi.set(__self__, "name", name)
|
|
65
42
|
|
|
66
43
|
@property
|
|
67
44
|
@pulumi.getter(name="associableTypes")
|
|
@@ -142,33 +119,14 @@ class _TagCategoryState:
|
|
|
142
119
|
them. Attempting to do so will result in an error.
|
|
143
120
|
:param pulumi.Input[str] name: The name of the category.
|
|
144
121
|
"""
|
|
145
|
-
_TagCategoryState._configure(
|
|
146
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
|
147
|
-
associable_types=associable_types,
|
|
148
|
-
cardinality=cardinality,
|
|
149
|
-
description=description,
|
|
150
|
-
name=name,
|
|
151
|
-
)
|
|
152
|
-
@staticmethod
|
|
153
|
-
def _configure(
|
|
154
|
-
_setter: Callable[[Any, Any], None],
|
|
155
|
-
associable_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
156
|
-
cardinality: Optional[pulumi.Input[str]] = None,
|
|
157
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
158
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
159
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
160
|
-
**kwargs):
|
|
161
|
-
if associable_types is None and 'associableTypes' in kwargs:
|
|
162
|
-
associable_types = kwargs['associableTypes']
|
|
163
|
-
|
|
164
122
|
if associable_types is not None:
|
|
165
|
-
|
|
123
|
+
pulumi.set(__self__, "associable_types", associable_types)
|
|
166
124
|
if cardinality is not None:
|
|
167
|
-
|
|
125
|
+
pulumi.set(__self__, "cardinality", cardinality)
|
|
168
126
|
if description is not None:
|
|
169
|
-
|
|
127
|
+
pulumi.set(__self__, "description", description)
|
|
170
128
|
if name is not None:
|
|
171
|
-
|
|
129
|
+
pulumi.set(__self__, "name", name)
|
|
172
130
|
|
|
173
131
|
@property
|
|
174
132
|
@pulumi.getter(name="associableTypes")
|
|
@@ -272,10 +230,6 @@ class TagCategory(pulumi.CustomResource):
|
|
|
272
230
|
if resource_args is not None:
|
|
273
231
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
274
232
|
else:
|
|
275
|
-
kwargs = kwargs or {}
|
|
276
|
-
def _setter(key, value):
|
|
277
|
-
kwargs[key] = value
|
|
278
|
-
TagCategoryArgs._configure(_setter, **kwargs)
|
|
279
233
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
280
234
|
|
|
281
235
|
def _internal_init(__self__,
|
pulumi_vsphere/vapp_container.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any,
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['VappContainerArgs', 'VappContainer']
|
|
@@ -75,102 +75,35 @@ class VappContainerArgs:
|
|
|
75
75
|
the vApp container's parent folder.
|
|
76
76
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
77
77
|
"""
|
|
78
|
-
|
|
79
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
|
80
|
-
parent_resource_pool_id=parent_resource_pool_id,
|
|
81
|
-
cpu_expandable=cpu_expandable,
|
|
82
|
-
cpu_limit=cpu_limit,
|
|
83
|
-
cpu_reservation=cpu_reservation,
|
|
84
|
-
cpu_share_level=cpu_share_level,
|
|
85
|
-
cpu_shares=cpu_shares,
|
|
86
|
-
custom_attributes=custom_attributes,
|
|
87
|
-
memory_expandable=memory_expandable,
|
|
88
|
-
memory_limit=memory_limit,
|
|
89
|
-
memory_reservation=memory_reservation,
|
|
90
|
-
memory_share_level=memory_share_level,
|
|
91
|
-
memory_shares=memory_shares,
|
|
92
|
-
name=name,
|
|
93
|
-
parent_folder_id=parent_folder_id,
|
|
94
|
-
tags=tags,
|
|
95
|
-
)
|
|
96
|
-
@staticmethod
|
|
97
|
-
def _configure(
|
|
98
|
-
_setter: Callable[[Any, Any], None],
|
|
99
|
-
parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
100
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
101
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
102
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
103
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
104
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
105
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
106
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
107
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
108
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
109
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
110
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
111
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
112
|
-
parent_folder_id: Optional[pulumi.Input[str]] = None,
|
|
113
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
114
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
115
|
-
**kwargs):
|
|
116
|
-
if parent_resource_pool_id is None and 'parentResourcePoolId' in kwargs:
|
|
117
|
-
parent_resource_pool_id = kwargs['parentResourcePoolId']
|
|
118
|
-
if parent_resource_pool_id is None:
|
|
119
|
-
raise TypeError("Missing 'parent_resource_pool_id' argument")
|
|
120
|
-
if cpu_expandable is None and 'cpuExpandable' in kwargs:
|
|
121
|
-
cpu_expandable = kwargs['cpuExpandable']
|
|
122
|
-
if cpu_limit is None and 'cpuLimit' in kwargs:
|
|
123
|
-
cpu_limit = kwargs['cpuLimit']
|
|
124
|
-
if cpu_reservation is None and 'cpuReservation' in kwargs:
|
|
125
|
-
cpu_reservation = kwargs['cpuReservation']
|
|
126
|
-
if cpu_share_level is None and 'cpuShareLevel' in kwargs:
|
|
127
|
-
cpu_share_level = kwargs['cpuShareLevel']
|
|
128
|
-
if cpu_shares is None and 'cpuShares' in kwargs:
|
|
129
|
-
cpu_shares = kwargs['cpuShares']
|
|
130
|
-
if custom_attributes is None and 'customAttributes' in kwargs:
|
|
131
|
-
custom_attributes = kwargs['customAttributes']
|
|
132
|
-
if memory_expandable is None and 'memoryExpandable' in kwargs:
|
|
133
|
-
memory_expandable = kwargs['memoryExpandable']
|
|
134
|
-
if memory_limit is None and 'memoryLimit' in kwargs:
|
|
135
|
-
memory_limit = kwargs['memoryLimit']
|
|
136
|
-
if memory_reservation is None and 'memoryReservation' in kwargs:
|
|
137
|
-
memory_reservation = kwargs['memoryReservation']
|
|
138
|
-
if memory_share_level is None and 'memoryShareLevel' in kwargs:
|
|
139
|
-
memory_share_level = kwargs['memoryShareLevel']
|
|
140
|
-
if memory_shares is None and 'memoryShares' in kwargs:
|
|
141
|
-
memory_shares = kwargs['memoryShares']
|
|
142
|
-
if parent_folder_id is None and 'parentFolderId' in kwargs:
|
|
143
|
-
parent_folder_id = kwargs['parentFolderId']
|
|
144
|
-
|
|
145
|
-
_setter("parent_resource_pool_id", parent_resource_pool_id)
|
|
78
|
+
pulumi.set(__self__, "parent_resource_pool_id", parent_resource_pool_id)
|
|
146
79
|
if cpu_expandable is not None:
|
|
147
|
-
|
|
80
|
+
pulumi.set(__self__, "cpu_expandable", cpu_expandable)
|
|
148
81
|
if cpu_limit is not None:
|
|
149
|
-
|
|
82
|
+
pulumi.set(__self__, "cpu_limit", cpu_limit)
|
|
150
83
|
if cpu_reservation is not None:
|
|
151
|
-
|
|
84
|
+
pulumi.set(__self__, "cpu_reservation", cpu_reservation)
|
|
152
85
|
if cpu_share_level is not None:
|
|
153
|
-
|
|
86
|
+
pulumi.set(__self__, "cpu_share_level", cpu_share_level)
|
|
154
87
|
if cpu_shares is not None:
|
|
155
|
-
|
|
88
|
+
pulumi.set(__self__, "cpu_shares", cpu_shares)
|
|
156
89
|
if custom_attributes is not None:
|
|
157
|
-
|
|
90
|
+
pulumi.set(__self__, "custom_attributes", custom_attributes)
|
|
158
91
|
if memory_expandable is not None:
|
|
159
|
-
|
|
92
|
+
pulumi.set(__self__, "memory_expandable", memory_expandable)
|
|
160
93
|
if memory_limit is not None:
|
|
161
|
-
|
|
94
|
+
pulumi.set(__self__, "memory_limit", memory_limit)
|
|
162
95
|
if memory_reservation is not None:
|
|
163
|
-
|
|
96
|
+
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
164
97
|
if memory_share_level is not None:
|
|
165
|
-
|
|
98
|
+
pulumi.set(__self__, "memory_share_level", memory_share_level)
|
|
166
99
|
if memory_shares is not None:
|
|
167
|
-
|
|
100
|
+
pulumi.set(__self__, "memory_shares", memory_shares)
|
|
168
101
|
if name is not None:
|
|
169
|
-
|
|
102
|
+
pulumi.set(__self__, "name", name)
|
|
170
103
|
if parent_folder_id is not None:
|
|
171
|
-
|
|
104
|
+
pulumi.set(__self__, "parent_folder_id", parent_folder_id)
|
|
172
105
|
if tags is not None:
|
|
173
|
-
|
|
106
|
+
pulumi.set(__self__, "tags", tags)
|
|
174
107
|
|
|
175
108
|
@property
|
|
176
109
|
@pulumi.getter(name="parentResourcePoolId")
|
|
@@ -445,101 +378,36 @@ class _VappContainerState:
|
|
|
445
378
|
resource pool or the move will fail.
|
|
446
379
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The IDs of any tags to attach to this resource.
|
|
447
380
|
"""
|
|
448
|
-
_VappContainerState._configure(
|
|
449
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
|
450
|
-
cpu_expandable=cpu_expandable,
|
|
451
|
-
cpu_limit=cpu_limit,
|
|
452
|
-
cpu_reservation=cpu_reservation,
|
|
453
|
-
cpu_share_level=cpu_share_level,
|
|
454
|
-
cpu_shares=cpu_shares,
|
|
455
|
-
custom_attributes=custom_attributes,
|
|
456
|
-
memory_expandable=memory_expandable,
|
|
457
|
-
memory_limit=memory_limit,
|
|
458
|
-
memory_reservation=memory_reservation,
|
|
459
|
-
memory_share_level=memory_share_level,
|
|
460
|
-
memory_shares=memory_shares,
|
|
461
|
-
name=name,
|
|
462
|
-
parent_folder_id=parent_folder_id,
|
|
463
|
-
parent_resource_pool_id=parent_resource_pool_id,
|
|
464
|
-
tags=tags,
|
|
465
|
-
)
|
|
466
|
-
@staticmethod
|
|
467
|
-
def _configure(
|
|
468
|
-
_setter: Callable[[Any, Any], None],
|
|
469
|
-
cpu_expandable: Optional[pulumi.Input[bool]] = None,
|
|
470
|
-
cpu_limit: Optional[pulumi.Input[int]] = None,
|
|
471
|
-
cpu_reservation: Optional[pulumi.Input[int]] = None,
|
|
472
|
-
cpu_share_level: Optional[pulumi.Input[str]] = None,
|
|
473
|
-
cpu_shares: Optional[pulumi.Input[int]] = None,
|
|
474
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
475
|
-
memory_expandable: Optional[pulumi.Input[bool]] = None,
|
|
476
|
-
memory_limit: Optional[pulumi.Input[int]] = None,
|
|
477
|
-
memory_reservation: Optional[pulumi.Input[int]] = None,
|
|
478
|
-
memory_share_level: Optional[pulumi.Input[str]] = None,
|
|
479
|
-
memory_shares: Optional[pulumi.Input[int]] = None,
|
|
480
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
481
|
-
parent_folder_id: Optional[pulumi.Input[str]] = None,
|
|
482
|
-
parent_resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
483
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
484
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
485
|
-
**kwargs):
|
|
486
|
-
if cpu_expandable is None and 'cpuExpandable' in kwargs:
|
|
487
|
-
cpu_expandable = kwargs['cpuExpandable']
|
|
488
|
-
if cpu_limit is None and 'cpuLimit' in kwargs:
|
|
489
|
-
cpu_limit = kwargs['cpuLimit']
|
|
490
|
-
if cpu_reservation is None and 'cpuReservation' in kwargs:
|
|
491
|
-
cpu_reservation = kwargs['cpuReservation']
|
|
492
|
-
if cpu_share_level is None and 'cpuShareLevel' in kwargs:
|
|
493
|
-
cpu_share_level = kwargs['cpuShareLevel']
|
|
494
|
-
if cpu_shares is None and 'cpuShares' in kwargs:
|
|
495
|
-
cpu_shares = kwargs['cpuShares']
|
|
496
|
-
if custom_attributes is None and 'customAttributes' in kwargs:
|
|
497
|
-
custom_attributes = kwargs['customAttributes']
|
|
498
|
-
if memory_expandable is None and 'memoryExpandable' in kwargs:
|
|
499
|
-
memory_expandable = kwargs['memoryExpandable']
|
|
500
|
-
if memory_limit is None and 'memoryLimit' in kwargs:
|
|
501
|
-
memory_limit = kwargs['memoryLimit']
|
|
502
|
-
if memory_reservation is None and 'memoryReservation' in kwargs:
|
|
503
|
-
memory_reservation = kwargs['memoryReservation']
|
|
504
|
-
if memory_share_level is None and 'memoryShareLevel' in kwargs:
|
|
505
|
-
memory_share_level = kwargs['memoryShareLevel']
|
|
506
|
-
if memory_shares is None and 'memoryShares' in kwargs:
|
|
507
|
-
memory_shares = kwargs['memoryShares']
|
|
508
|
-
if parent_folder_id is None and 'parentFolderId' in kwargs:
|
|
509
|
-
parent_folder_id = kwargs['parentFolderId']
|
|
510
|
-
if parent_resource_pool_id is None and 'parentResourcePoolId' in kwargs:
|
|
511
|
-
parent_resource_pool_id = kwargs['parentResourcePoolId']
|
|
512
|
-
|
|
513
381
|
if cpu_expandable is not None:
|
|
514
|
-
|
|
382
|
+
pulumi.set(__self__, "cpu_expandable", cpu_expandable)
|
|
515
383
|
if cpu_limit is not None:
|
|
516
|
-
|
|
384
|
+
pulumi.set(__self__, "cpu_limit", cpu_limit)
|
|
517
385
|
if cpu_reservation is not None:
|
|
518
|
-
|
|
386
|
+
pulumi.set(__self__, "cpu_reservation", cpu_reservation)
|
|
519
387
|
if cpu_share_level is not None:
|
|
520
|
-
|
|
388
|
+
pulumi.set(__self__, "cpu_share_level", cpu_share_level)
|
|
521
389
|
if cpu_shares is not None:
|
|
522
|
-
|
|
390
|
+
pulumi.set(__self__, "cpu_shares", cpu_shares)
|
|
523
391
|
if custom_attributes is not None:
|
|
524
|
-
|
|
392
|
+
pulumi.set(__self__, "custom_attributes", custom_attributes)
|
|
525
393
|
if memory_expandable is not None:
|
|
526
|
-
|
|
394
|
+
pulumi.set(__self__, "memory_expandable", memory_expandable)
|
|
527
395
|
if memory_limit is not None:
|
|
528
|
-
|
|
396
|
+
pulumi.set(__self__, "memory_limit", memory_limit)
|
|
529
397
|
if memory_reservation is not None:
|
|
530
|
-
|
|
398
|
+
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
531
399
|
if memory_share_level is not None:
|
|
532
|
-
|
|
400
|
+
pulumi.set(__self__, "memory_share_level", memory_share_level)
|
|
533
401
|
if memory_shares is not None:
|
|
534
|
-
|
|
402
|
+
pulumi.set(__self__, "memory_shares", memory_shares)
|
|
535
403
|
if name is not None:
|
|
536
|
-
|
|
404
|
+
pulumi.set(__self__, "name", name)
|
|
537
405
|
if parent_folder_id is not None:
|
|
538
|
-
|
|
406
|
+
pulumi.set(__self__, "parent_folder_id", parent_folder_id)
|
|
539
407
|
if parent_resource_pool_id is not None:
|
|
540
|
-
|
|
408
|
+
pulumi.set(__self__, "parent_resource_pool_id", parent_resource_pool_id)
|
|
541
409
|
if tags is not None:
|
|
542
|
-
|
|
410
|
+
pulumi.set(__self__, "tags", tags)
|
|
543
411
|
|
|
544
412
|
@property
|
|
545
413
|
@pulumi.getter(name="cpuExpandable")
|
|
@@ -837,10 +705,6 @@ class VappContainer(pulumi.CustomResource):
|
|
|
837
705
|
if resource_args is not None:
|
|
838
706
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
839
707
|
else:
|
|
840
|
-
kwargs = kwargs or {}
|
|
841
|
-
def _setter(key, value):
|
|
842
|
-
kwargs[key] = value
|
|
843
|
-
VappContainerArgs._configure(_setter, **kwargs)
|
|
844
708
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
845
709
|
|
|
846
710
|
def _internal_init(__self__,
|
pulumi_vsphere/vapp_entity.py
CHANGED
|
@@ -6,7 +6,7 @@ import copy
|
|
|
6
6
|
import warnings
|
|
7
7
|
import pulumi
|
|
8
8
|
import pulumi.runtime
|
|
9
|
-
from typing import Any,
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = ['VappEntityArgs', 'VappEntity']
|
|
@@ -48,75 +48,24 @@ class VappEntityArgs:
|
|
|
48
48
|
started when VMware Tools are ready instead of waiting for `start_delay`. This
|
|
49
49
|
property has no effect for vApps. Default: false
|
|
50
50
|
"""
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
container_id=container_id,
|
|
54
|
-
target_id=target_id,
|
|
55
|
-
custom_attributes=custom_attributes,
|
|
56
|
-
start_action=start_action,
|
|
57
|
-
start_delay=start_delay,
|
|
58
|
-
start_order=start_order,
|
|
59
|
-
stop_action=stop_action,
|
|
60
|
-
stop_delay=stop_delay,
|
|
61
|
-
tags=tags,
|
|
62
|
-
wait_for_guest=wait_for_guest,
|
|
63
|
-
)
|
|
64
|
-
@staticmethod
|
|
65
|
-
def _configure(
|
|
66
|
-
_setter: Callable[[Any, Any], None],
|
|
67
|
-
container_id: Optional[pulumi.Input[str]] = None,
|
|
68
|
-
target_id: Optional[pulumi.Input[str]] = None,
|
|
69
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
70
|
-
start_action: Optional[pulumi.Input[str]] = None,
|
|
71
|
-
start_delay: Optional[pulumi.Input[int]] = None,
|
|
72
|
-
start_order: Optional[pulumi.Input[int]] = None,
|
|
73
|
-
stop_action: Optional[pulumi.Input[str]] = None,
|
|
74
|
-
stop_delay: Optional[pulumi.Input[int]] = None,
|
|
75
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
76
|
-
wait_for_guest: Optional[pulumi.Input[bool]] = None,
|
|
77
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
78
|
-
**kwargs):
|
|
79
|
-
if container_id is None and 'containerId' in kwargs:
|
|
80
|
-
container_id = kwargs['containerId']
|
|
81
|
-
if container_id is None:
|
|
82
|
-
raise TypeError("Missing 'container_id' argument")
|
|
83
|
-
if target_id is None and 'targetId' in kwargs:
|
|
84
|
-
target_id = kwargs['targetId']
|
|
85
|
-
if target_id is None:
|
|
86
|
-
raise TypeError("Missing 'target_id' argument")
|
|
87
|
-
if custom_attributes is None and 'customAttributes' in kwargs:
|
|
88
|
-
custom_attributes = kwargs['customAttributes']
|
|
89
|
-
if start_action is None and 'startAction' in kwargs:
|
|
90
|
-
start_action = kwargs['startAction']
|
|
91
|
-
if start_delay is None and 'startDelay' in kwargs:
|
|
92
|
-
start_delay = kwargs['startDelay']
|
|
93
|
-
if start_order is None and 'startOrder' in kwargs:
|
|
94
|
-
start_order = kwargs['startOrder']
|
|
95
|
-
if stop_action is None and 'stopAction' in kwargs:
|
|
96
|
-
stop_action = kwargs['stopAction']
|
|
97
|
-
if stop_delay is None and 'stopDelay' in kwargs:
|
|
98
|
-
stop_delay = kwargs['stopDelay']
|
|
99
|
-
if wait_for_guest is None and 'waitForGuest' in kwargs:
|
|
100
|
-
wait_for_guest = kwargs['waitForGuest']
|
|
101
|
-
|
|
102
|
-
_setter("container_id", container_id)
|
|
103
|
-
_setter("target_id", target_id)
|
|
51
|
+
pulumi.set(__self__, "container_id", container_id)
|
|
52
|
+
pulumi.set(__self__, "target_id", target_id)
|
|
104
53
|
if custom_attributes is not None:
|
|
105
|
-
|
|
54
|
+
pulumi.set(__self__, "custom_attributes", custom_attributes)
|
|
106
55
|
if start_action is not None:
|
|
107
|
-
|
|
56
|
+
pulumi.set(__self__, "start_action", start_action)
|
|
108
57
|
if start_delay is not None:
|
|
109
|
-
|
|
58
|
+
pulumi.set(__self__, "start_delay", start_delay)
|
|
110
59
|
if start_order is not None:
|
|
111
|
-
|
|
60
|
+
pulumi.set(__self__, "start_order", start_order)
|
|
112
61
|
if stop_action is not None:
|
|
113
|
-
|
|
62
|
+
pulumi.set(__self__, "stop_action", stop_action)
|
|
114
63
|
if stop_delay is not None:
|
|
115
|
-
|
|
64
|
+
pulumi.set(__self__, "stop_delay", stop_delay)
|
|
116
65
|
if tags is not None:
|
|
117
|
-
|
|
66
|
+
pulumi.set(__self__, "tags", tags)
|
|
118
67
|
if wait_for_guest is not None:
|
|
119
|
-
|
|
68
|
+
pulumi.set(__self__, "wait_for_guest", wait_for_guest)
|
|
120
69
|
|
|
121
70
|
@property
|
|
122
71
|
@pulumi.getter(name="containerId")
|
|
@@ -287,73 +236,26 @@ class _VappEntityState:
|
|
|
287
236
|
started when VMware Tools are ready instead of waiting for `start_delay`. This
|
|
288
237
|
property has no effect for vApps. Default: false
|
|
289
238
|
"""
|
|
290
|
-
_VappEntityState._configure(
|
|
291
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
|
292
|
-
container_id=container_id,
|
|
293
|
-
custom_attributes=custom_attributes,
|
|
294
|
-
start_action=start_action,
|
|
295
|
-
start_delay=start_delay,
|
|
296
|
-
start_order=start_order,
|
|
297
|
-
stop_action=stop_action,
|
|
298
|
-
stop_delay=stop_delay,
|
|
299
|
-
tags=tags,
|
|
300
|
-
target_id=target_id,
|
|
301
|
-
wait_for_guest=wait_for_guest,
|
|
302
|
-
)
|
|
303
|
-
@staticmethod
|
|
304
|
-
def _configure(
|
|
305
|
-
_setter: Callable[[Any, Any], None],
|
|
306
|
-
container_id: Optional[pulumi.Input[str]] = None,
|
|
307
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
308
|
-
start_action: Optional[pulumi.Input[str]] = None,
|
|
309
|
-
start_delay: Optional[pulumi.Input[int]] = None,
|
|
310
|
-
start_order: Optional[pulumi.Input[int]] = None,
|
|
311
|
-
stop_action: Optional[pulumi.Input[str]] = None,
|
|
312
|
-
stop_delay: Optional[pulumi.Input[int]] = None,
|
|
313
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
314
|
-
target_id: Optional[pulumi.Input[str]] = None,
|
|
315
|
-
wait_for_guest: Optional[pulumi.Input[bool]] = None,
|
|
316
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
|
317
|
-
**kwargs):
|
|
318
|
-
if container_id is None and 'containerId' in kwargs:
|
|
319
|
-
container_id = kwargs['containerId']
|
|
320
|
-
if custom_attributes is None and 'customAttributes' in kwargs:
|
|
321
|
-
custom_attributes = kwargs['customAttributes']
|
|
322
|
-
if start_action is None and 'startAction' in kwargs:
|
|
323
|
-
start_action = kwargs['startAction']
|
|
324
|
-
if start_delay is None and 'startDelay' in kwargs:
|
|
325
|
-
start_delay = kwargs['startDelay']
|
|
326
|
-
if start_order is None and 'startOrder' in kwargs:
|
|
327
|
-
start_order = kwargs['startOrder']
|
|
328
|
-
if stop_action is None and 'stopAction' in kwargs:
|
|
329
|
-
stop_action = kwargs['stopAction']
|
|
330
|
-
if stop_delay is None and 'stopDelay' in kwargs:
|
|
331
|
-
stop_delay = kwargs['stopDelay']
|
|
332
|
-
if target_id is None and 'targetId' in kwargs:
|
|
333
|
-
target_id = kwargs['targetId']
|
|
334
|
-
if wait_for_guest is None and 'waitForGuest' in kwargs:
|
|
335
|
-
wait_for_guest = kwargs['waitForGuest']
|
|
336
|
-
|
|
337
239
|
if container_id is not None:
|
|
338
|
-
|
|
240
|
+
pulumi.set(__self__, "container_id", container_id)
|
|
339
241
|
if custom_attributes is not None:
|
|
340
|
-
|
|
242
|
+
pulumi.set(__self__, "custom_attributes", custom_attributes)
|
|
341
243
|
if start_action is not None:
|
|
342
|
-
|
|
244
|
+
pulumi.set(__self__, "start_action", start_action)
|
|
343
245
|
if start_delay is not None:
|
|
344
|
-
|
|
246
|
+
pulumi.set(__self__, "start_delay", start_delay)
|
|
345
247
|
if start_order is not None:
|
|
346
|
-
|
|
248
|
+
pulumi.set(__self__, "start_order", start_order)
|
|
347
249
|
if stop_action is not None:
|
|
348
|
-
|
|
250
|
+
pulumi.set(__self__, "stop_action", stop_action)
|
|
349
251
|
if stop_delay is not None:
|
|
350
|
-
|
|
252
|
+
pulumi.set(__self__, "stop_delay", stop_delay)
|
|
351
253
|
if tags is not None:
|
|
352
|
-
|
|
254
|
+
pulumi.set(__self__, "tags", tags)
|
|
353
255
|
if target_id is not None:
|
|
354
|
-
|
|
256
|
+
pulumi.set(__self__, "target_id", target_id)
|
|
355
257
|
if wait_for_guest is not None:
|
|
356
|
-
|
|
258
|
+
pulumi.set(__self__, "wait_for_guest", wait_for_guest)
|
|
357
259
|
|
|
358
260
|
@property
|
|
359
261
|
@pulumi.getter(name="containerId")
|
|
@@ -547,10 +449,6 @@ class VappEntity(pulumi.CustomResource):
|
|
|
547
449
|
if resource_args is not None:
|
|
548
450
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
549
451
|
else:
|
|
550
|
-
kwargs = kwargs or {}
|
|
551
|
-
def _setter(key, value):
|
|
552
|
-
kwargs[key] = value
|
|
553
|
-
VappEntityArgs._configure(_setter, **kwargs)
|
|
554
452
|
__self__._internal_init(resource_name, *args, **kwargs)
|
|
555
453
|
|
|
556
454
|
def _internal_init(__self__,
|