pulumi-vsphere 4.8.1__py3-none-any.whl → 4.9.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.
- pulumi_vsphere/__init__.py +10 -0
- pulumi_vsphere/_inputs.py +675 -28
- pulumi_vsphere/compute_cluster.py +155 -7
- pulumi_vsphere/config/__init__.pyi +73 -0
- pulumi_vsphere/get_guest_os_customization.py +173 -0
- pulumi_vsphere/guest_os_customization.py +350 -0
- pulumi_vsphere/outputs.py +952 -84
- {pulumi_vsphere-4.8.1.dist-info → pulumi_vsphere-4.9.0.dist-info}/METADATA +1 -1
- {pulumi_vsphere-4.8.1.dist-info → pulumi_vsphere-4.9.0.dist-info}/RECORD +11 -8
- {pulumi_vsphere-4.8.1.dist-info → pulumi_vsphere-4.9.0.dist-info}/WHEEL +1 -1
- {pulumi_vsphere-4.8.1.dist-info → pulumi_vsphere-4.9.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,350 @@
|
|
|
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__ = ['GuestOsCustomizationArgs', 'GuestOsCustomization']
|
|
15
|
+
|
|
16
|
+
@pulumi.input_type
|
|
17
|
+
class GuestOsCustomizationArgs:
|
|
18
|
+
def __init__(__self__, *,
|
|
19
|
+
spec: pulumi.Input['GuestOsCustomizationSpecArgs'],
|
|
20
|
+
type: pulumi.Input[str],
|
|
21
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
22
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
23
|
+
"""
|
|
24
|
+
The set of arguments for constructing a GuestOsCustomization resource.
|
|
25
|
+
:param pulumi.Input['GuestOsCustomizationSpecArgs'] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
26
|
+
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
27
|
+
:param pulumi.Input[str] description: The description for the customization specification.
|
|
28
|
+
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
29
|
+
"""
|
|
30
|
+
pulumi.set(__self__, "spec", spec)
|
|
31
|
+
pulumi.set(__self__, "type", type)
|
|
32
|
+
if description is not None:
|
|
33
|
+
pulumi.set(__self__, "description", description)
|
|
34
|
+
if name is not None:
|
|
35
|
+
pulumi.set(__self__, "name", name)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
@pulumi.getter
|
|
39
|
+
def spec(self) -> pulumi.Input['GuestOsCustomizationSpecArgs']:
|
|
40
|
+
"""
|
|
41
|
+
Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
42
|
+
"""
|
|
43
|
+
return pulumi.get(self, "spec")
|
|
44
|
+
|
|
45
|
+
@spec.setter
|
|
46
|
+
def spec(self, value: pulumi.Input['GuestOsCustomizationSpecArgs']):
|
|
47
|
+
pulumi.set(self, "spec", value)
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter
|
|
51
|
+
def type(self) -> pulumi.Input[str]:
|
|
52
|
+
"""
|
|
53
|
+
The type of customization specification: One among: Windows, Linux.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "type")
|
|
56
|
+
|
|
57
|
+
@type.setter
|
|
58
|
+
def type(self, value: pulumi.Input[str]):
|
|
59
|
+
pulumi.set(self, "type", value)
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
64
|
+
"""
|
|
65
|
+
The description for the customization specification.
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "description")
|
|
68
|
+
|
|
69
|
+
@description.setter
|
|
70
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
71
|
+
pulumi.set(self, "description", value)
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter
|
|
75
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
76
|
+
"""
|
|
77
|
+
The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "name")
|
|
80
|
+
|
|
81
|
+
@name.setter
|
|
82
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
83
|
+
pulumi.set(self, "name", value)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
@pulumi.input_type
|
|
87
|
+
class _GuestOsCustomizationState:
|
|
88
|
+
def __init__(__self__, *,
|
|
89
|
+
change_version: Optional[pulumi.Input[str]] = None,
|
|
90
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
91
|
+
last_update_time: Optional[pulumi.Input[str]] = None,
|
|
92
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
93
|
+
spec: Optional[pulumi.Input['GuestOsCustomizationSpecArgs']] = None,
|
|
94
|
+
type: Optional[pulumi.Input[str]] = None):
|
|
95
|
+
"""
|
|
96
|
+
Input properties used for looking up and filtering GuestOsCustomization resources.
|
|
97
|
+
:param pulumi.Input[str] change_version: The number of last changed version to the customization specification.
|
|
98
|
+
:param pulumi.Input[str] description: The description for the customization specification.
|
|
99
|
+
:param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
|
|
100
|
+
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
101
|
+
:param pulumi.Input['GuestOsCustomizationSpecArgs'] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
102
|
+
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
103
|
+
"""
|
|
104
|
+
if change_version is not None:
|
|
105
|
+
pulumi.set(__self__, "change_version", change_version)
|
|
106
|
+
if description is not None:
|
|
107
|
+
pulumi.set(__self__, "description", description)
|
|
108
|
+
if last_update_time is not None:
|
|
109
|
+
pulumi.set(__self__, "last_update_time", last_update_time)
|
|
110
|
+
if name is not None:
|
|
111
|
+
pulumi.set(__self__, "name", name)
|
|
112
|
+
if spec is not None:
|
|
113
|
+
pulumi.set(__self__, "spec", spec)
|
|
114
|
+
if type is not None:
|
|
115
|
+
pulumi.set(__self__, "type", type)
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter(name="changeVersion")
|
|
119
|
+
def change_version(self) -> Optional[pulumi.Input[str]]:
|
|
120
|
+
"""
|
|
121
|
+
The number of last changed version to the customization specification.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "change_version")
|
|
124
|
+
|
|
125
|
+
@change_version.setter
|
|
126
|
+
def change_version(self, value: Optional[pulumi.Input[str]]):
|
|
127
|
+
pulumi.set(self, "change_version", value)
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter
|
|
131
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
132
|
+
"""
|
|
133
|
+
The description for the customization specification.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "description")
|
|
136
|
+
|
|
137
|
+
@description.setter
|
|
138
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
139
|
+
pulumi.set(self, "description", value)
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter(name="lastUpdateTime")
|
|
143
|
+
def last_update_time(self) -> Optional[pulumi.Input[str]]:
|
|
144
|
+
"""
|
|
145
|
+
The time of last modification to the customization specification.
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "last_update_time")
|
|
148
|
+
|
|
149
|
+
@last_update_time.setter
|
|
150
|
+
def last_update_time(self, value: Optional[pulumi.Input[str]]):
|
|
151
|
+
pulumi.set(self, "last_update_time", value)
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
@pulumi.getter
|
|
155
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
156
|
+
"""
|
|
157
|
+
The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "name")
|
|
160
|
+
|
|
161
|
+
@name.setter
|
|
162
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
163
|
+
pulumi.set(self, "name", value)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def spec(self) -> Optional[pulumi.Input['GuestOsCustomizationSpecArgs']]:
|
|
168
|
+
"""
|
|
169
|
+
Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "spec")
|
|
172
|
+
|
|
173
|
+
@spec.setter
|
|
174
|
+
def spec(self, value: Optional[pulumi.Input['GuestOsCustomizationSpecArgs']]):
|
|
175
|
+
pulumi.set(self, "spec", value)
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter
|
|
179
|
+
def type(self) -> Optional[pulumi.Input[str]]:
|
|
180
|
+
"""
|
|
181
|
+
The type of customization specification: One among: Windows, Linux.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "type")
|
|
184
|
+
|
|
185
|
+
@type.setter
|
|
186
|
+
def type(self, value: Optional[pulumi.Input[str]]):
|
|
187
|
+
pulumi.set(self, "type", value)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class GuestOsCustomization(pulumi.CustomResource):
|
|
191
|
+
@overload
|
|
192
|
+
def __init__(__self__,
|
|
193
|
+
resource_name: str,
|
|
194
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
195
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
196
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
197
|
+
spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
|
|
198
|
+
type: Optional[pulumi.Input[str]] = None,
|
|
199
|
+
__props__=None):
|
|
200
|
+
"""
|
|
201
|
+
The `GuestOsCustomization` resource can be used to a customization specification for a guest operating system.
|
|
202
|
+
|
|
203
|
+
> **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
|
|
204
|
+
|
|
205
|
+
:param str resource_name: The name of the resource.
|
|
206
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
207
|
+
:param pulumi.Input[str] description: The description for the customization specification.
|
|
208
|
+
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
209
|
+
:param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
210
|
+
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
211
|
+
"""
|
|
212
|
+
...
|
|
213
|
+
@overload
|
|
214
|
+
def __init__(__self__,
|
|
215
|
+
resource_name: str,
|
|
216
|
+
args: GuestOsCustomizationArgs,
|
|
217
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
218
|
+
"""
|
|
219
|
+
The `GuestOsCustomization` resource can be used to a customization specification for a guest operating system.
|
|
220
|
+
|
|
221
|
+
> **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
|
|
222
|
+
|
|
223
|
+
:param str resource_name: The name of the resource.
|
|
224
|
+
:param GuestOsCustomizationArgs args: The arguments to use to populate this resource's properties.
|
|
225
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
226
|
+
"""
|
|
227
|
+
...
|
|
228
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
229
|
+
resource_args, opts = _utilities.get_resource_args_opts(GuestOsCustomizationArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
230
|
+
if resource_args is not None:
|
|
231
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
232
|
+
else:
|
|
233
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
234
|
+
|
|
235
|
+
def _internal_init(__self__,
|
|
236
|
+
resource_name: str,
|
|
237
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
238
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
239
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
240
|
+
spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
|
|
241
|
+
type: Optional[pulumi.Input[str]] = None,
|
|
242
|
+
__props__=None):
|
|
243
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
244
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
245
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
246
|
+
if opts.id is None:
|
|
247
|
+
if __props__ is not None:
|
|
248
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
249
|
+
__props__ = GuestOsCustomizationArgs.__new__(GuestOsCustomizationArgs)
|
|
250
|
+
|
|
251
|
+
__props__.__dict__["description"] = description
|
|
252
|
+
__props__.__dict__["name"] = name
|
|
253
|
+
if spec is None and not opts.urn:
|
|
254
|
+
raise TypeError("Missing required property 'spec'")
|
|
255
|
+
__props__.__dict__["spec"] = spec
|
|
256
|
+
if type is None and not opts.urn:
|
|
257
|
+
raise TypeError("Missing required property 'type'")
|
|
258
|
+
__props__.__dict__["type"] = type
|
|
259
|
+
__props__.__dict__["change_version"] = None
|
|
260
|
+
__props__.__dict__["last_update_time"] = None
|
|
261
|
+
super(GuestOsCustomization, __self__).__init__(
|
|
262
|
+
'vsphere:index/guestOsCustomization:GuestOsCustomization',
|
|
263
|
+
resource_name,
|
|
264
|
+
__props__,
|
|
265
|
+
opts)
|
|
266
|
+
|
|
267
|
+
@staticmethod
|
|
268
|
+
def get(resource_name: str,
|
|
269
|
+
id: pulumi.Input[str],
|
|
270
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
271
|
+
change_version: Optional[pulumi.Input[str]] = None,
|
|
272
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
273
|
+
last_update_time: Optional[pulumi.Input[str]] = None,
|
|
274
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
275
|
+
spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
|
|
276
|
+
type: Optional[pulumi.Input[str]] = None) -> 'GuestOsCustomization':
|
|
277
|
+
"""
|
|
278
|
+
Get an existing GuestOsCustomization resource's state with the given name, id, and optional extra
|
|
279
|
+
properties used to qualify the lookup.
|
|
280
|
+
|
|
281
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
282
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
283
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
284
|
+
:param pulumi.Input[str] change_version: The number of last changed version to the customization specification.
|
|
285
|
+
:param pulumi.Input[str] description: The description for the customization specification.
|
|
286
|
+
:param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
|
|
287
|
+
:param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
288
|
+
:param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
289
|
+
:param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
|
|
290
|
+
"""
|
|
291
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
292
|
+
|
|
293
|
+
__props__ = _GuestOsCustomizationState.__new__(_GuestOsCustomizationState)
|
|
294
|
+
|
|
295
|
+
__props__.__dict__["change_version"] = change_version
|
|
296
|
+
__props__.__dict__["description"] = description
|
|
297
|
+
__props__.__dict__["last_update_time"] = last_update_time
|
|
298
|
+
__props__.__dict__["name"] = name
|
|
299
|
+
__props__.__dict__["spec"] = spec
|
|
300
|
+
__props__.__dict__["type"] = type
|
|
301
|
+
return GuestOsCustomization(resource_name, opts=opts, __props__=__props__)
|
|
302
|
+
|
|
303
|
+
@property
|
|
304
|
+
@pulumi.getter(name="changeVersion")
|
|
305
|
+
def change_version(self) -> pulumi.Output[str]:
|
|
306
|
+
"""
|
|
307
|
+
The number of last changed version to the customization specification.
|
|
308
|
+
"""
|
|
309
|
+
return pulumi.get(self, "change_version")
|
|
310
|
+
|
|
311
|
+
@property
|
|
312
|
+
@pulumi.getter
|
|
313
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
|
314
|
+
"""
|
|
315
|
+
The description for the customization specification.
|
|
316
|
+
"""
|
|
317
|
+
return pulumi.get(self, "description")
|
|
318
|
+
|
|
319
|
+
@property
|
|
320
|
+
@pulumi.getter(name="lastUpdateTime")
|
|
321
|
+
def last_update_time(self) -> pulumi.Output[str]:
|
|
322
|
+
"""
|
|
323
|
+
The time of last modification to the customization specification.
|
|
324
|
+
"""
|
|
325
|
+
return pulumi.get(self, "last_update_time")
|
|
326
|
+
|
|
327
|
+
@property
|
|
328
|
+
@pulumi.getter
|
|
329
|
+
def name(self) -> pulumi.Output[str]:
|
|
330
|
+
"""
|
|
331
|
+
The name of the customization specification is the unique identifier per vCenter Server instance.
|
|
332
|
+
"""
|
|
333
|
+
return pulumi.get(self, "name")
|
|
334
|
+
|
|
335
|
+
@property
|
|
336
|
+
@pulumi.getter
|
|
337
|
+
def spec(self) -> pulumi.Output['outputs.GuestOsCustomizationSpec']:
|
|
338
|
+
"""
|
|
339
|
+
Container object for the Guest OS properties about to be customized . See virtual machine customizations
|
|
340
|
+
"""
|
|
341
|
+
return pulumi.get(self, "spec")
|
|
342
|
+
|
|
343
|
+
@property
|
|
344
|
+
@pulumi.getter
|
|
345
|
+
def type(self) -> pulumi.Output[str]:
|
|
346
|
+
"""
|
|
347
|
+
The type of customization specification: One among: Windows, Linux.
|
|
348
|
+
"""
|
|
349
|
+
return pulumi.get(self, "type")
|
|
350
|
+
|