pulumi-vsphere 4.10.0a1709017641__py3-none-any.whl → 4.17.0a1763710194__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 (89) hide show
  1. pulumi_vsphere/__init__.py +51 -1
  2. pulumi_vsphere/_inputs.py +2568 -1025
  3. pulumi_vsphere/_utilities.py +50 -10
  4. pulumi_vsphere/compute_cluster.py +1564 -2373
  5. pulumi_vsphere/compute_cluster_host_group.py +191 -55
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
  9. pulumi_vsphere/compute_cluster_vm_group.py +256 -55
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
  11. pulumi_vsphere/config/__init__.py +2 -1
  12. pulumi_vsphere/config/__init__.pyi +7 -2
  13. pulumi_vsphere/config/vars.py +20 -15
  14. pulumi_vsphere/configuration_profile.py +286 -0
  15. pulumi_vsphere/content_library.py +177 -71
  16. pulumi_vsphere/content_library_item.py +252 -106
  17. pulumi_vsphere/custom_attribute.py +118 -38
  18. pulumi_vsphere/datacenter.py +128 -107
  19. pulumi_vsphere/datastore_cluster.py +636 -731
  20. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
  21. pulumi_vsphere/distributed_port_group.py +1129 -967
  22. pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
  23. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
  24. pulumi_vsphere/dpm_host_override.py +222 -72
  25. pulumi_vsphere/drs_vm_override.py +236 -72
  26. pulumi_vsphere/entity_permissions.py +96 -69
  27. pulumi_vsphere/file.py +173 -178
  28. pulumi_vsphere/folder.py +236 -113
  29. pulumi_vsphere/get_compute_cluster.py +34 -23
  30. pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
  31. pulumi_vsphere/get_configuration_profile.py +145 -0
  32. pulumi_vsphere/get_content_library.py +33 -21
  33. pulumi_vsphere/get_content_library_item.py +47 -31
  34. pulumi_vsphere/get_custom_attribute.py +26 -17
  35. pulumi_vsphere/get_datacenter.py +40 -18
  36. pulumi_vsphere/get_datastore.py +60 -24
  37. pulumi_vsphere/get_datastore_cluster.py +47 -22
  38. pulumi_vsphere/get_datastore_stats.py +204 -0
  39. pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
  40. pulumi_vsphere/get_dynamic.py +55 -45
  41. pulumi_vsphere/get_folder.py +163 -25
  42. pulumi_vsphere/get_guest_os_customization.py +68 -37
  43. pulumi_vsphere/get_host.py +34 -23
  44. pulumi_vsphere/get_host_base_images.py +104 -0
  45. pulumi_vsphere/get_host_pci_device.py +78 -35
  46. pulumi_vsphere/get_host_thumbprint.py +58 -38
  47. pulumi_vsphere/get_host_vgpu_profile.py +195 -0
  48. pulumi_vsphere/get_license.py +44 -28
  49. pulumi_vsphere/get_network.py +157 -46
  50. pulumi_vsphere/get_ovf_vm_template.py +184 -301
  51. pulumi_vsphere/get_policy.py +23 -15
  52. pulumi_vsphere/get_resource_pool.py +107 -40
  53. pulumi_vsphere/get_role.py +49 -35
  54. pulumi_vsphere/get_tag.py +34 -23
  55. pulumi_vsphere/get_tag_category.py +32 -21
  56. pulumi_vsphere/get_vapp_container.py +31 -21
  57. pulumi_vsphere/get_virtual_machine.py +499 -287
  58. pulumi_vsphere/get_vmfs_disks.py +42 -29
  59. pulumi_vsphere/guest_os_customization.py +135 -79
  60. pulumi_vsphere/ha_vm_override.py +470 -577
  61. pulumi_vsphere/host.py +515 -262
  62. pulumi_vsphere/host_port_group.py +352 -355
  63. pulumi_vsphere/host_virtual_switch.py +580 -580
  64. pulumi_vsphere/license.py +110 -92
  65. pulumi_vsphere/nas_datastore.py +398 -270
  66. pulumi_vsphere/offline_software_depot.py +190 -0
  67. pulumi_vsphere/outputs.py +1582 -1027
  68. pulumi_vsphere/provider.py +172 -152
  69. pulumi_vsphere/pulumi-plugin.json +2 -1
  70. pulumi_vsphere/resource_pool.py +357 -273
  71. pulumi_vsphere/role.py +79 -47
  72. pulumi_vsphere/storage_drs_vm_override.py +225 -89
  73. pulumi_vsphere/supervisor.py +1064 -0
  74. pulumi_vsphere/tag.py +217 -55
  75. pulumi_vsphere/tag_category.py +158 -72
  76. pulumi_vsphere/vapp_container.py +425 -259
  77. pulumi_vsphere/vapp_entity.py +324 -174
  78. pulumi_vsphere/virtual_disk.py +245 -153
  79. pulumi_vsphere/virtual_machine.py +1696 -1836
  80. pulumi_vsphere/virtual_machine_class.py +448 -0
  81. pulumi_vsphere/virtual_machine_snapshot.py +137 -131
  82. pulumi_vsphere/vm_storage_policy.py +160 -154
  83. pulumi_vsphere/vmfs_datastore.py +460 -186
  84. pulumi_vsphere/vnic.py +249 -231
  85. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
  86. pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
  87. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
  88. pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
  89. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
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
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -35,27 +40,27 @@ class GetComputeClusterResult:
35
40
  raise TypeError("Expected argument 'resource_pool_id' to be a str")
36
41
  pulumi.set(__self__, "resource_pool_id", resource_pool_id)
37
42
 
38
- @property
43
+ @_builtins.property
39
44
  @pulumi.getter(name="datacenterId")
40
- def datacenter_id(self) -> Optional[str]:
45
+ def datacenter_id(self) -> Optional[_builtins.str]:
41
46
  return pulumi.get(self, "datacenter_id")
42
47
 
43
- @property
48
+ @_builtins.property
44
49
  @pulumi.getter
45
- def id(self) -> str:
50
+ def id(self) -> _builtins.str:
46
51
  """
47
52
  The provider-assigned unique ID for this managed resource.
48
53
  """
49
54
  return pulumi.get(self, "id")
50
55
 
51
- @property
56
+ @_builtins.property
52
57
  @pulumi.getter
53
- def name(self) -> str:
58
+ def name(self) -> _builtins.str:
54
59
  return pulumi.get(self, "name")
55
60
 
56
- @property
61
+ @_builtins.property
57
62
  @pulumi.getter(name="resourcePoolId")
58
- def resource_pool_id(self) -> str:
63
+ def resource_pool_id(self) -> _builtins.str:
59
64
  """
60
65
  The managed object reference ID of
61
66
  the root resource pool for the cluster.
@@ -75,8 +80,8 @@ class AwaitableGetComputeClusterResult(GetComputeClusterResult):
75
80
  resource_pool_id=self.resource_pool_id)
76
81
 
77
82
 
78
- def get_compute_cluster(datacenter_id: Optional[str] = None,
79
- name: Optional[str] = None,
83
+ def get_compute_cluster(datacenter_id: Optional[_builtins.str] = None,
84
+ name: Optional[_builtins.str] = None,
80
85
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeClusterResult:
81
86
  """
82
87
  The `ComputeCluster` data source can be used to discover the ID of a
@@ -101,11 +106,11 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
101
106
  ```
102
107
 
103
108
 
104
- :param str datacenter_id: The managed object reference ID
109
+ :param _builtins.str datacenter_id: The managed object reference ID
105
110
  of the datacenter the cluster is located in. This can be omitted if the
106
111
  search path used in `name` is an absolute path. For default datacenters,
107
112
  use the `id` attribute from an empty `Datacenter` data source.
108
- :param str name: The name or absolute path to the cluster.
113
+ :param _builtins.str name: The name or absolute path to the cluster.
109
114
  """
110
115
  __args__ = dict()
111
116
  __args__['datacenterId'] = datacenter_id
@@ -118,12 +123,9 @@ def get_compute_cluster(datacenter_id: Optional[str] = None,
118
123
  id=pulumi.get(__ret__, 'id'),
119
124
  name=pulumi.get(__ret__, 'name'),
120
125
  resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
121
-
122
-
123
- @_utilities.lift_output_func(get_compute_cluster)
124
- def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
125
- name: Optional[pulumi.Input[str]] = None,
126
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeClusterResult]:
126
+ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
127
+ name: Optional[pulumi.Input[_builtins.str]] = None,
128
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetComputeClusterResult]:
127
129
  """
128
130
  The `ComputeCluster` data source can be used to discover the ID of a
129
131
  cluster in vSphere. This is useful to fetch the ID of a cluster that you want
@@ -147,10 +149,19 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str
147
149
  ```
148
150
 
149
151
 
150
- :param str datacenter_id: The managed object reference ID
152
+ :param _builtins.str datacenter_id: The managed object reference ID
151
153
  of the datacenter the cluster is located in. This can be omitted if the
152
154
  search path used in `name` is an absolute path. For default datacenters,
153
155
  use the `id` attribute from an empty `Datacenter` data source.
154
- :param str name: The name or absolute path to the cluster.
156
+ :param _builtins.str name: The name or absolute path to the cluster.
155
157
  """
156
- ...
158
+ __args__ = dict()
159
+ __args__['datacenterId'] = datacenter_id
160
+ __args__['name'] = name
161
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
162
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getComputeCluster:getComputeCluster', __args__, opts=opts, typ=GetComputeClusterResult)
163
+ return __ret__.apply(lambda __response__: GetComputeClusterResult(
164
+ datacenter_id=pulumi.get(__response__, 'datacenter_id'),
165
+ id=pulumi.get(__response__, 'id'),
166
+ name=pulumi.get(__response__, 'name'),
167
+ resource_pool_id=pulumi.get(__response__, 'resource_pool_id')))
@@ -1,12 +1,17 @@
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
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -35,31 +40,31 @@ class GetComputeClusterHostGroupResult:
35
40
  raise TypeError("Expected argument 'name' to be a str")
36
41
  pulumi.set(__self__, "name", name)
37
42
 
38
- @property
43
+ @_builtins.property
39
44
  @pulumi.getter(name="computeClusterId")
40
- def compute_cluster_id(self) -> str:
45
+ def compute_cluster_id(self) -> _builtins.str:
41
46
  return pulumi.get(self, "compute_cluster_id")
42
47
 
43
- @property
48
+ @_builtins.property
44
49
  @pulumi.getter(name="hostSystemIds")
45
- def host_system_ids(self) -> Sequence[str]:
50
+ def host_system_ids(self) -> Sequence[_builtins.str]:
46
51
  """
47
52
  The [managed object reference ID][docs-about-morefs] of
48
53
  the ESXi hosts in the host group.
49
54
  """
50
55
  return pulumi.get(self, "host_system_ids")
51
56
 
52
- @property
57
+ @_builtins.property
53
58
  @pulumi.getter
54
- def id(self) -> str:
59
+ def id(self) -> _builtins.str:
55
60
  """
56
61
  The provider-assigned unique ID for this managed resource.
57
62
  """
58
63
  return pulumi.get(self, "id")
59
64
 
60
- @property
65
+ @_builtins.property
61
66
  @pulumi.getter
62
- def name(self) -> str:
67
+ def name(self) -> _builtins.str:
63
68
  return pulumi.get(self, "name")
64
69
 
65
70
 
@@ -75,8 +80,8 @@ class AwaitableGetComputeClusterHostGroupResult(GetComputeClusterHostGroupResult
75
80
  name=self.name)
76
81
 
77
82
 
78
- def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
79
- name: Optional[str] = None,
83
+ def get_compute_cluster_host_group(compute_cluster_id: Optional[_builtins.str] = None,
84
+ name: Optional[_builtins.str] = None,
80
85
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeClusterHostGroupResult:
81
86
  """
82
87
  The `ComputeClusterHostGroup` data source can be used to discover
@@ -89,23 +94,23 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
89
94
  import pulumi
90
95
  import pulumi_vsphere as vsphere
91
96
 
92
- datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
93
- cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
97
+ datacenter = vsphere.get_datacenter(name="dc-01")
98
+ cluster = vsphere.get_compute_cluster(name="cluster-01",
94
99
  datacenter_id=datacenter.id)
95
- host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
100
+ host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
96
101
  compute_cluster_id=cluster.id)
97
- host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
102
+ host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
98
103
  compute_cluster_id=cluster.id,
99
- vm_group_name="vm_group1",
100
- affinity_host_group_name=host_group1.name)
104
+ name="pulumi-host-rule1",
105
+ vm_group_name="vmgroup-01",
106
+ affinity_host_group_name=host_group.name)
101
107
  ```
102
108
 
103
109
 
104
- :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
105
- of the compute cluster for the host group.
106
-
107
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
108
- :param str name: The name of the host group.
110
+ :param _builtins.str compute_cluster_id: The
111
+ [managed object reference ID][docs-about-morefs] of the compute cluster for
112
+ the host group.
113
+ :param _builtins.str name: The name of the host group.
109
114
  """
110
115
  __args__ = dict()
111
116
  __args__['computeClusterId'] = compute_cluster_id
@@ -118,12 +123,9 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None,
118
123
  host_system_ids=pulumi.get(__ret__, 'host_system_ids'),
119
124
  id=pulumi.get(__ret__, 'id'),
120
125
  name=pulumi.get(__ret__, 'name'))
121
-
122
-
123
- @_utilities.lift_output_func(get_compute_cluster_host_group)
124
- def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.Input[str]] = None,
125
- name: Optional[pulumi.Input[str]] = None,
126
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetComputeClusterHostGroupResult]:
126
+ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
127
+ name: Optional[pulumi.Input[_builtins.str]] = None,
128
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetComputeClusterHostGroupResult]:
127
129
  """
128
130
  The `ComputeClusterHostGroup` data source can be used to discover
129
131
  the IDs ESXi hosts in a host group and return host group attributes to other
@@ -135,22 +137,31 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
135
137
  import pulumi
136
138
  import pulumi_vsphere as vsphere
137
139
 
138
- datacenter = vsphere.get_datacenter(name=var["vsphere_datacenter"])
139
- cluster = vsphere.get_compute_cluster(name=var["vsphere_cluster"],
140
+ datacenter = vsphere.get_datacenter(name="dc-01")
141
+ cluster = vsphere.get_compute_cluster(name="cluster-01",
140
142
  datacenter_id=datacenter.id)
141
- host_group1 = vsphere.get_compute_cluster_host_group(name="host_group1",
143
+ host_group = vsphere.get_compute_cluster_host_group(name="hostgroup-01",
142
144
  compute_cluster_id=cluster.id)
143
- host_rule1 = vsphere.ComputeClusterVmHostRule("hostRule1",
145
+ host_rule = vsphere.ComputeClusterVmHostRule("host_rule",
144
146
  compute_cluster_id=cluster.id,
145
- vm_group_name="vm_group1",
146
- affinity_host_group_name=host_group1.name)
147
+ name="pulumi-host-rule1",
148
+ vm_group_name="vmgroup-01",
149
+ affinity_host_group_name=host_group.name)
147
150
  ```
148
151
 
149
152
 
150
- :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs]
151
- of the compute cluster for the host group.
152
-
153
- [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
154
- :param str name: The name of the host group.
153
+ :param _builtins.str compute_cluster_id: The
154
+ [managed object reference ID][docs-about-morefs] of the compute cluster for
155
+ the host group.
156
+ :param _builtins.str name: The name of the host group.
155
157
  """
156
- ...
158
+ __args__ = dict()
159
+ __args__['computeClusterId'] = compute_cluster_id
160
+ __args__['name'] = name
161
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
162
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup', __args__, opts=opts, typ=GetComputeClusterHostGroupResult)
163
+ return __ret__.apply(lambda __response__: GetComputeClusterHostGroupResult(
164
+ compute_cluster_id=pulumi.get(__response__, 'compute_cluster_id'),
165
+ host_system_ids=pulumi.get(__response__, 'host_system_ids'),
166
+ id=pulumi.get(__response__, 'id'),
167
+ name=pulumi.get(__response__, 'name')))
@@ -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')))
@@ -1,12 +1,17 @@
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
- import copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -29,17 +34,17 @@ class GetContentLibraryResult:
29
34
  raise TypeError("Expected argument 'name' to be a str")
30
35
  pulumi.set(__self__, "name", name)
31
36
 
32
- @property
37
+ @_builtins.property
33
38
  @pulumi.getter
34
- def id(self) -> str:
39
+ def id(self) -> _builtins.str:
35
40
  """
36
41
  The provider-assigned unique ID for this managed resource.
37
42
  """
38
43
  return pulumi.get(self, "id")
39
44
 
40
- @property
45
+ @_builtins.property
41
46
  @pulumi.getter
42
- def name(self) -> str:
47
+ def name(self) -> _builtins.str:
43
48
  return pulumi.get(self, "name")
44
49
 
45
50
 
@@ -53,12 +58,14 @@ class AwaitableGetContentLibraryResult(GetContentLibraryResult):
53
58
  name=self.name)
54
59
 
55
60
 
56
- def get_content_library(name: Optional[str] = None,
61
+ def get_content_library(name: Optional[_builtins.str] = None,
57
62
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetContentLibraryResult:
58
63
  """
59
- The `ContentLibrary` data source can be used to discover the ID of a content library.
64
+ The `ContentLibrary` data source can be used to discover the ID of a
65
+ content library.
60
66
 
61
- > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
67
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
68
+ host connections.
62
69
 
63
70
  ## Example Usage
64
71
 
@@ -66,11 +73,11 @@ def get_content_library(name: Optional[str] = None,
66
73
  import pulumi
67
74
  import pulumi_vsphere as vsphere
68
75
 
69
- library = vsphere.get_content_library(name="Content Library")
76
+ content_library = vsphere.get_content_library(name="Content Library")
70
77
  ```
71
78
 
72
79
 
73
- :param str name: The name of the content library.
80
+ :param _builtins.str name: The name of the content library.
74
81
  """
75
82
  __args__ = dict()
76
83
  __args__['name'] = name
@@ -80,15 +87,14 @@ def get_content_library(name: Optional[str] = None,
80
87
  return AwaitableGetContentLibraryResult(
81
88
  id=pulumi.get(__ret__, 'id'),
82
89
  name=pulumi.get(__ret__, 'name'))
83
-
84
-
85
- @_utilities.lift_output_func(get_content_library)
86
- def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
87
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetContentLibraryResult]:
90
+ def get_content_library_output(name: Optional[pulumi.Input[_builtins.str]] = None,
91
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetContentLibraryResult]:
88
92
  """
89
- The `ContentLibrary` data source can be used to discover the ID of a content library.
93
+ The `ContentLibrary` data source can be used to discover the ID of a
94
+ content library.
90
95
 
91
- > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections.
96
+ > **NOTE:** This resource requires vCenter and is not available on direct ESXi
97
+ host connections.
92
98
 
93
99
  ## Example Usage
94
100
 
@@ -96,10 +102,16 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None,
96
102
  import pulumi
97
103
  import pulumi_vsphere as vsphere
98
104
 
99
- library = vsphere.get_content_library(name="Content Library")
105
+ content_library = vsphere.get_content_library(name="Content Library")
100
106
  ```
101
107
 
102
108
 
103
- :param str name: The name of the content library.
109
+ :param _builtins.str name: The name of the content library.
104
110
  """
105
- ...
111
+ __args__ = dict()
112
+ __args__['name'] = name
113
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
114
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getContentLibrary:getContentLibrary', __args__, opts=opts, typ=GetContentLibraryResult)
115
+ return __ret__.apply(lambda __response__: GetContentLibraryResult(
116
+ id=pulumi.get(__response__, 'id'),
117
+ name=pulumi.get(__response__, 'name')))