pulumi-vsphere 4.16.0a1755845322__py3-none-any.whl → 4.16.1__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.

@@ -0,0 +1,145 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = [
18
+ 'GetConfigurationProfileResult',
19
+ 'AwaitableGetConfigurationProfileResult',
20
+ 'get_configuration_profile',
21
+ 'get_configuration_profile_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetConfigurationProfileResult:
26
+ """
27
+ A collection of values returned by getConfigurationProfile.
28
+ """
29
+ def __init__(__self__, cluster_id=None, configuration=None, id=None, schema=None):
30
+ if cluster_id and not isinstance(cluster_id, str):
31
+ raise TypeError("Expected argument 'cluster_id' to be a str")
32
+ pulumi.set(__self__, "cluster_id", cluster_id)
33
+ if configuration and not isinstance(configuration, str):
34
+ raise TypeError("Expected argument 'configuration' to be a str")
35
+ pulumi.set(__self__, "configuration", configuration)
36
+ if id and not isinstance(id, str):
37
+ raise TypeError("Expected argument 'id' to be a str")
38
+ pulumi.set(__self__, "id", id)
39
+ if schema and not isinstance(schema, str):
40
+ raise TypeError("Expected argument 'schema' to be a str")
41
+ pulumi.set(__self__, "schema", schema)
42
+
43
+ @_builtins.property
44
+ @pulumi.getter(name="clusterId")
45
+ def cluster_id(self) -> _builtins.str:
46
+ return pulumi.get(self, "cluster_id")
47
+
48
+ @_builtins.property
49
+ @pulumi.getter
50
+ def configuration(self) -> _builtins.str:
51
+ """
52
+ The current configuration which is active on the cluster.
53
+ """
54
+ return pulumi.get(self, "configuration")
55
+
56
+ @_builtins.property
57
+ @pulumi.getter
58
+ def id(self) -> _builtins.str:
59
+ """
60
+ The provider-assigned unique ID for this managed resource.
61
+ """
62
+ return pulumi.get(self, "id")
63
+
64
+ @_builtins.property
65
+ @pulumi.getter
66
+ def schema(self) -> _builtins.str:
67
+ """
68
+ The JSON schema for the profile.
69
+ """
70
+ return pulumi.get(self, "schema")
71
+
72
+
73
+ class AwaitableGetConfigurationProfileResult(GetConfigurationProfileResult):
74
+ # pylint: disable=using-constant-test
75
+ def __await__(self):
76
+ if False:
77
+ yield self
78
+ return GetConfigurationProfileResult(
79
+ cluster_id=self.cluster_id,
80
+ configuration=self.configuration,
81
+ id=self.id,
82
+ schema=self.schema)
83
+
84
+
85
+ def get_configuration_profile(cluster_id: Optional[_builtins.str] = None,
86
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetConfigurationProfileResult:
87
+ """
88
+ The `ConfigurationProfile` data source can be used to export the configuration and schema
89
+ of a cluster that is already managed via configuration profiles.
90
+
91
+ ## Example Usage
92
+
93
+ ```python
94
+ import pulumi
95
+ import pulumi_vsphere as vsphere
96
+
97
+ datacenter = vsphere.get_datacenter(name="dc-01")
98
+ compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
99
+ datacenter_id=datacenter.id)
100
+ profile = vsphere.get_configuration_profile(cluster_id=compute_cluster.id)
101
+ ```
102
+
103
+
104
+ :param _builtins.str cluster_id: The identifier of the compute cluster.
105
+ """
106
+ __args__ = dict()
107
+ __args__['clusterId'] = cluster_id
108
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
109
+ __ret__ = pulumi.runtime.invoke('vsphere:index/getConfigurationProfile:getConfigurationProfile', __args__, opts=opts, typ=GetConfigurationProfileResult).value
110
+
111
+ return AwaitableGetConfigurationProfileResult(
112
+ cluster_id=pulumi.get(__ret__, 'cluster_id'),
113
+ configuration=pulumi.get(__ret__, 'configuration'),
114
+ id=pulumi.get(__ret__, 'id'),
115
+ schema=pulumi.get(__ret__, 'schema'))
116
+ def get_configuration_profile_output(cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
117
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConfigurationProfileResult]:
118
+ """
119
+ The `ConfigurationProfile` data source can be used to export the configuration and schema
120
+ of a cluster that is already managed via configuration profiles.
121
+
122
+ ## Example Usage
123
+
124
+ ```python
125
+ import pulumi
126
+ import pulumi_vsphere as vsphere
127
+
128
+ datacenter = vsphere.get_datacenter(name="dc-01")
129
+ compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
130
+ datacenter_id=datacenter.id)
131
+ profile = vsphere.get_configuration_profile(cluster_id=compute_cluster.id)
132
+ ```
133
+
134
+
135
+ :param _builtins.str cluster_id: The identifier of the compute cluster.
136
+ """
137
+ __args__ = dict()
138
+ __args__['clusterId'] = cluster_id
139
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getConfigurationProfile:getConfigurationProfile', __args__, opts=opts, typ=GetConfigurationProfileResult)
141
+ return __ret__.apply(lambda __response__: GetConfigurationProfileResult(
142
+ cluster_id=pulumi.get(__response__, 'cluster_id'),
143
+ configuration=pulumi.get(__response__, 'configuration'),
144
+ id=pulumi.get(__response__, 'id'),
145
+ schema=pulumi.get(__response__, 'schema')))
@@ -129,6 +129,8 @@ def get_guest_os_customization(name: Optional[_builtins.str] = None,
129
129
  The `GuestOsCustomization` data source can be used to discover the
130
130
  details about a customization specification for a guest operating system.
131
131
 
132
+ ## Example Usage
133
+
132
134
 
133
135
  :param _builtins.str name: The name of the customization specification is the unique
134
136
  identifier per vCenter Server instance.
@@ -152,6 +154,8 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[_builtins.str]
152
154
  The `GuestOsCustomization` data source can be used to discover the
153
155
  details about a customization specification for a guest operating system.
154
156
 
157
+ ## Example Usage
158
+
155
159
 
156
160
  :param _builtins.str name: The name of the customization specification is the unique
157
161
  identifier per vCenter Server instance.
@@ -400,7 +400,7 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[_builtins.bool] = No
400
400
  empty, the default option is chosen.
401
401
  :param _builtins.str disk_provisioning: The disk provisioning type. If set, all the
402
402
  disks included in the OVF/OVA will have the same specified policy. Can be
403
- one of `thin`, `thick`, `eagerZeroedThick`, or `sameAsSource`.
403
+ one of `thin`, `thick`, or `eagerZeroedThick`.
404
404
  :param _builtins.bool enable_hidden_properties: Allow properties with
405
405
  `ovf:userConfigurable=false` to be set.
406
406
  :param _builtins.str folder: The name of the folder in which to place the virtual
@@ -503,7 +503,7 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[
503
503
  empty, the default option is chosen.
504
504
  :param _builtins.str disk_provisioning: The disk provisioning type. If set, all the
505
505
  disks included in the OVF/OVA will have the same specified policy. Can be
506
- one of `thin`, `thick`, `eagerZeroedThick`, or `sameAsSource`.
506
+ one of `thin`, `thick`, or `eagerZeroedThick`.
507
507
  :param _builtins.bool enable_hidden_properties: Allow properties with
508
508
  `ovf:userConfigurable=false` to be set.
509
509
  :param _builtins.str folder: The name of the folder in which to place the virtual