pulumi-vsphere 4.15.0a1752907786__py3-none-any.whl → 4.16.0a1753339697__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.

@@ -29,7 +29,7 @@ class GetNetworkResult:
29
29
  """
30
30
  A collection of values returned by getNetwork.
31
31
  """
32
- def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, retry_interval=None, retry_timeout=None, type=None):
32
+ def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, retry_interval=None, retry_timeout=None, type=None, vpc_id=None):
33
33
  if datacenter_id and not isinstance(datacenter_id, str):
34
34
  raise TypeError("Expected argument 'datacenter_id' to be a str")
35
35
  pulumi.set(__self__, "datacenter_id", datacenter_id)
@@ -54,6 +54,9 @@ class GetNetworkResult:
54
54
  if type and not isinstance(type, str):
55
55
  raise TypeError("Expected argument 'type' to be a str")
56
56
  pulumi.set(__self__, "type", type)
57
+ if vpc_id and not isinstance(vpc_id, str):
58
+ raise TypeError("Expected argument 'vpc_id' to be a str")
59
+ pulumi.set(__self__, "vpc_id", vpc_id)
57
60
 
58
61
  @property
59
62
  @pulumi.getter(name="datacenterId")
@@ -104,6 +107,11 @@ class GetNetworkResult:
104
107
  """
105
108
  return pulumi.get(self, "type")
106
109
 
110
+ @property
111
+ @pulumi.getter(name="vpcId")
112
+ def vpc_id(self) -> Optional[builtins.str]:
113
+ return pulumi.get(self, "vpc_id")
114
+
107
115
 
108
116
  class AwaitableGetNetworkResult(GetNetworkResult):
109
117
  # pylint: disable=using-constant-test
@@ -118,7 +126,8 @@ class AwaitableGetNetworkResult(GetNetworkResult):
118
126
  name=self.name,
119
127
  retry_interval=self.retry_interval,
120
128
  retry_timeout=self.retry_timeout,
121
- type=self.type)
129
+ type=self.type,
130
+ vpc_id=self.vpc_id)
122
131
 
123
132
 
124
133
  def get_network(datacenter_id: Optional[builtins.str] = None,
@@ -127,6 +136,7 @@ def get_network(datacenter_id: Optional[builtins.str] = None,
127
136
  name: Optional[builtins.str] = None,
128
137
  retry_interval: Optional[builtins.int] = None,
129
138
  retry_timeout: Optional[builtins.int] = None,
139
+ vpc_id: Optional[builtins.str] = None,
130
140
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
131
141
  """
132
142
  The `get_network` data source can be used to discover the ID of a network in
@@ -173,6 +183,7 @@ def get_network(datacenter_id: Optional[builtins.str] = None,
173
183
  :param builtins.str name: The name of the network. This can be a name or path.
174
184
  :param builtins.int retry_interval: The interval in milliseconds to retry the read operation if `retry_timeout` is set. Default: 500.
175
185
  :param builtins.int retry_timeout: The timeout duration in seconds for the data source to retry read operations.
186
+ :param builtins.str vpc_id: Select a VPC scope for retrieval of VPC subnets.
176
187
  """
177
188
  __args__ = dict()
178
189
  __args__['datacenterId'] = datacenter_id
@@ -181,6 +192,7 @@ def get_network(datacenter_id: Optional[builtins.str] = None,
181
192
  __args__['name'] = name
182
193
  __args__['retryInterval'] = retry_interval
183
194
  __args__['retryTimeout'] = retry_timeout
195
+ __args__['vpcId'] = vpc_id
184
196
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
185
197
  __ret__ = pulumi.runtime.invoke('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult).value
186
198
 
@@ -192,13 +204,15 @@ def get_network(datacenter_id: Optional[builtins.str] = None,
192
204
  name=pulumi.get(__ret__, 'name'),
193
205
  retry_interval=pulumi.get(__ret__, 'retry_interval'),
194
206
  retry_timeout=pulumi.get(__ret__, 'retry_timeout'),
195
- type=pulumi.get(__ret__, 'type'))
207
+ type=pulumi.get(__ret__, 'type'),
208
+ vpc_id=pulumi.get(__ret__, 'vpc_id'))
196
209
  def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
197
210
  distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[builtins.str]]] = None,
198
211
  filters: Optional[pulumi.Input[Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]]]] = None,
199
212
  name: Optional[pulumi.Input[builtins.str]] = None,
200
213
  retry_interval: Optional[pulumi.Input[Optional[builtins.int]]] = None,
201
214
  retry_timeout: Optional[pulumi.Input[Optional[builtins.int]]] = None,
215
+ vpc_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
202
216
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNetworkResult]:
203
217
  """
204
218
  The `get_network` data source can be used to discover the ID of a network in
@@ -245,6 +259,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.st
245
259
  :param builtins.str name: The name of the network. This can be a name or path.
246
260
  :param builtins.int retry_interval: The interval in milliseconds to retry the read operation if `retry_timeout` is set. Default: 500.
247
261
  :param builtins.int retry_timeout: The timeout duration in seconds for the data source to retry read operations.
262
+ :param builtins.str vpc_id: Select a VPC scope for retrieval of VPC subnets.
248
263
  """
249
264
  __args__ = dict()
250
265
  __args__['datacenterId'] = datacenter_id
@@ -253,6 +268,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.st
253
268
  __args__['name'] = name
254
269
  __args__['retryInterval'] = retry_interval
255
270
  __args__['retryTimeout'] = retry_timeout
271
+ __args__['vpcId'] = vpc_id
256
272
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
257
273
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
258
274
  return __ret__.apply(lambda __response__: GetNetworkResult(
@@ -263,4 +279,5 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.st
263
279
  name=pulumi.get(__response__, 'name'),
264
280
  retry_interval=pulumi.get(__response__, 'retry_interval'),
265
281
  retry_timeout=pulumi.get(__response__, 'retry_timeout'),
266
- type=pulumi.get(__response__, 'type')))
282
+ type=pulumi.get(__response__, 'type'),
283
+ vpc_id=pulumi.get(__response__, 'vpc_id')))
@@ -27,7 +27,7 @@ class GetResourcePoolResult:
27
27
  """
28
28
  A collection of values returned by getResourcePool.
29
29
  """
30
- def __init__(__self__, datacenter_id=None, id=None, name=None):
30
+ def __init__(__self__, datacenter_id=None, id=None, name=None, parent_resource_pool_id=None):
31
31
  if datacenter_id and not isinstance(datacenter_id, str):
32
32
  raise TypeError("Expected argument 'datacenter_id' to be a str")
33
33
  pulumi.set(__self__, "datacenter_id", datacenter_id)
@@ -37,6 +37,9 @@ class GetResourcePoolResult:
37
37
  if name and not isinstance(name, str):
38
38
  raise TypeError("Expected argument 'name' to be a str")
39
39
  pulumi.set(__self__, "name", name)
40
+ if parent_resource_pool_id and not isinstance(parent_resource_pool_id, str):
41
+ raise TypeError("Expected argument 'parent_resource_pool_id' to be a str")
42
+ pulumi.set(__self__, "parent_resource_pool_id", parent_resource_pool_id)
40
43
 
41
44
  @property
42
45
  @pulumi.getter(name="datacenterId")
@@ -56,6 +59,11 @@ class GetResourcePoolResult:
56
59
  def name(self) -> Optional[builtins.str]:
57
60
  return pulumi.get(self, "name")
58
61
 
62
+ @property
63
+ @pulumi.getter(name="parentResourcePoolId")
64
+ def parent_resource_pool_id(self) -> Optional[builtins.str]:
65
+ return pulumi.get(self, "parent_resource_pool_id")
66
+
59
67
 
60
68
  class AwaitableGetResourcePoolResult(GetResourcePoolResult):
61
69
  # pylint: disable=using-constant-test
@@ -65,11 +73,13 @@ class AwaitableGetResourcePoolResult(GetResourcePoolResult):
65
73
  return GetResourcePoolResult(
66
74
  datacenter_id=self.datacenter_id,
67
75
  id=self.id,
68
- name=self.name)
76
+ name=self.name,
77
+ parent_resource_pool_id=self.parent_resource_pool_id)
69
78
 
70
79
 
71
80
  def get_resource_pool(datacenter_id: Optional[builtins.str] = None,
72
81
  name: Optional[builtins.str] = None,
82
+ parent_resource_pool_id: Optional[builtins.str] = None,
73
83
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourcePoolResult:
74
84
  """
75
85
  The `ResourcePool` data source can be used to discover the ID of a
@@ -79,15 +89,30 @@ def get_resource_pool(datacenter_id: Optional[builtins.str] = None,
79
89
 
80
90
  ## Example Usage
81
91
 
92
+ ### Find a Resource Pool by Path
93
+
82
94
  ```python
83
95
  import pulumi
84
96
  import pulumi_vsphere as vsphere
85
97
 
86
98
  datacenter = vsphere.get_datacenter(name="dc-01")
87
- pool = vsphere.get_resource_pool(name="resource-pool-01",
99
+ pool = vsphere.get_resource_pool(name="cluster-01/Resources",
88
100
  datacenter_id=datacenter.id)
89
101
  ```
90
102
 
103
+ ### Find a Child Resource Pool Using the Parent ID
104
+
105
+ ```python
106
+ import pulumi
107
+ import pulumi_vsphere as vsphere
108
+
109
+ datacenter = vsphere.get_datacenter(name="dc-01")
110
+ parent_pool = vsphere.get_resource_pool(name="cluster-01/Resources",
111
+ datacenter_id=datacenter.id)
112
+ child_pool = vsphere.get_resource_pool(name="example",
113
+ parent_resource_pool_id=parent_pool.id)
114
+ ```
115
+
91
116
  ### Specifying the Root Resource Pool for a Standalone ESXi Host
92
117
 
93
118
  > **NOTE:** Returning the root resource pool for a cluster can be done
@@ -117,26 +142,32 @@ def get_resource_pool(datacenter_id: Optional[builtins.str] = None,
117
142
  of the datacenter in which the resource pool is located. This can be omitted
118
143
  if the search path used in `name` is an absolute path. For default
119
144
  datacenters, use the id attribute from an empty `Datacenter` data
120
- source.
145
+ source..
146
+ :param builtins.str name: The name of the resource pool. This can be a name or
147
+ path. This is required when using vCenter.
148
+ :param builtins.str parent_resource_pool_id: The managed object ID
149
+ of the parent resource pool. When specified, the `name` parameter is used to find
150
+ a child resource pool with the given name under this parent resource pool.
121
151
 
122
152
  > **Note:** When using ESXi without a vCenter Server instance, you do not
123
153
  need to specify either attribute to use this data source. An empty declaration
124
154
  will load the ESXi host's root resource pool.
125
- :param builtins.str name: The name of the resource pool. This can be a name or
126
- path. This is required when using vCenter.
127
155
  """
128
156
  __args__ = dict()
129
157
  __args__['datacenterId'] = datacenter_id
130
158
  __args__['name'] = name
159
+ __args__['parentResourcePoolId'] = parent_resource_pool_id
131
160
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
132
161
  __ret__ = pulumi.runtime.invoke('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult).value
133
162
 
134
163
  return AwaitableGetResourcePoolResult(
135
164
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
136
165
  id=pulumi.get(__ret__, 'id'),
137
- name=pulumi.get(__ret__, 'name'))
166
+ name=pulumi.get(__ret__, 'name'),
167
+ parent_resource_pool_id=pulumi.get(__ret__, 'parent_resource_pool_id'))
138
168
  def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
139
169
  name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
170
+ parent_resource_pool_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
140
171
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetResourcePoolResult]:
141
172
  """
142
173
  The `ResourcePool` data source can be used to discover the ID of a
@@ -146,15 +177,30 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[built
146
177
 
147
178
  ## Example Usage
148
179
 
180
+ ### Find a Resource Pool by Path
181
+
149
182
  ```python
150
183
  import pulumi
151
184
  import pulumi_vsphere as vsphere
152
185
 
153
186
  datacenter = vsphere.get_datacenter(name="dc-01")
154
- pool = vsphere.get_resource_pool(name="resource-pool-01",
187
+ pool = vsphere.get_resource_pool(name="cluster-01/Resources",
155
188
  datacenter_id=datacenter.id)
156
189
  ```
157
190
 
191
+ ### Find a Child Resource Pool Using the Parent ID
192
+
193
+ ```python
194
+ import pulumi
195
+ import pulumi_vsphere as vsphere
196
+
197
+ datacenter = vsphere.get_datacenter(name="dc-01")
198
+ parent_pool = vsphere.get_resource_pool(name="cluster-01/Resources",
199
+ datacenter_id=datacenter.id)
200
+ child_pool = vsphere.get_resource_pool(name="example",
201
+ parent_resource_pool_id=parent_pool.id)
202
+ ```
203
+
158
204
  ### Specifying the Root Resource Pool for a Standalone ESXi Host
159
205
 
160
206
  > **NOTE:** Returning the root resource pool for a cluster can be done
@@ -184,20 +230,25 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[built
184
230
  of the datacenter in which the resource pool is located. This can be omitted
185
231
  if the search path used in `name` is an absolute path. For default
186
232
  datacenters, use the id attribute from an empty `Datacenter` data
187
- source.
233
+ source..
234
+ :param builtins.str name: The name of the resource pool. This can be a name or
235
+ path. This is required when using vCenter.
236
+ :param builtins.str parent_resource_pool_id: The managed object ID
237
+ of the parent resource pool. When specified, the `name` parameter is used to find
238
+ a child resource pool with the given name under this parent resource pool.
188
239
 
189
240
  > **Note:** When using ESXi without a vCenter Server instance, you do not
190
241
  need to specify either attribute to use this data source. An empty declaration
191
242
  will load the ESXi host's root resource pool.
192
- :param builtins.str name: The name of the resource pool. This can be a name or
193
- path. This is required when using vCenter.
194
243
  """
195
244
  __args__ = dict()
196
245
  __args__['datacenterId'] = datacenter_id
197
246
  __args__['name'] = name
247
+ __args__['parentResourcePoolId'] = parent_resource_pool_id
198
248
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
199
249
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getResourcePool:getResourcePool', __args__, opts=opts, typ=GetResourcePoolResult)
200
250
  return __ret__.apply(lambda __response__: GetResourcePoolResult(
201
251
  datacenter_id=pulumi.get(__response__, 'datacenter_id'),
202
252
  id=pulumi.get(__response__, 'id'),
203
- name=pulumi.get(__response__, 'name')))
253
+ name=pulumi.get(__response__, 'name'),
254
+ parent_resource_pool_id=pulumi.get(__response__, 'parent_resource_pool_id')))
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "vsphere",
4
- "version": "4.15.0-alpha.1752907786"
4
+ "version": "4.16.0-alpha.1753339697"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_vsphere
3
- Version: 4.15.0a1752907786
3
+ Version: 4.16.0a1753339697
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -41,10 +41,10 @@ pulumi_vsphere/get_host_pci_device.py,sha256=YYeg_ogdWzPu4PcBuNZcWQMhB0kS8Yqt-yK
41
41
  pulumi_vsphere/get_host_thumbprint.py,sha256=79pxpHstukh6P-l1U4Bc8pV7i16zp10Qv9CNzqUBm0E,6287
42
42
  pulumi_vsphere/get_host_vgpu_profile.py,sha256=-BKpciweuxy9fhk7p-r8dILrGUaJQ9yp0TxqXtG_iOw,7239
43
43
  pulumi_vsphere/get_license.py,sha256=zhCkNSiBWWNFWAY1hhMk3V0jea3EXRuWauV7nohn7D8,6230
44
- pulumi_vsphere/get_network.py,sha256=e3PbktK2gQOWx8QThk3gU9uJW6-ziKb-E68WypXYTFg,12088
44
+ pulumi_vsphere/get_network.py,sha256=LNlevRJKswKKEW4Dpasis6nH0tkEzKomcyq01GgbaTU,12901
45
45
  pulumi_vsphere/get_ovf_vm_template.py,sha256=ABTO_gYgsjYOpRFN2rrm5u-oALZLOdz1To6lQI5vIdQ,29990
46
46
  pulumi_vsphere/get_policy.py,sha256=MhPgQDEuzIkmSAvOW79NmFUf8nrhOZrVZMVj8wCyK4Q,4050
47
- pulumi_vsphere/get_resource_pool.py,sha256=g5sNeuKY-iK3q6ov3LJJv3LYvS-N6GgpIlXRfwXHBpo,8078
47
+ pulumi_vsphere/get_resource_pool.py,sha256=V7CdXotOQcrTQApcSz8zg7-fjAAO4C4g3djrMbUGtV8,10490
48
48
  pulumi_vsphere/get_role.py,sha256=Z3PtzOl6Sr4Aw7jhzIbBL4GjoHAaZlIqyT5Z2h5DrhE,6247
49
49
  pulumi_vsphere/get_tag.py,sha256=SyfWFCAQIjcm79zxU-tQTDE3YDyuWY3491gbqVRTvs8,5649
50
50
  pulumi_vsphere/get_tag_category.py,sha256=tUlTz78NkNQldBZqNFagsd5vO91KscDdcc7l_nEjHYg,5893
@@ -61,7 +61,7 @@ pulumi_vsphere/nas_datastore.py,sha256=TtkzyOwklQMxqA6urYmqBSDXsBbDhLYRG0owmRqIy
61
61
  pulumi_vsphere/offline_software_depot.py,sha256=lSGClvuqSUfiddzK0ihxN9LPqaKkzF2WT-xhvzqPmUQ,7785
62
62
  pulumi_vsphere/outputs.py,sha256=G-W9itCxE0Qe2wQ6GXEYA-y-AECJ_sh8CcYlguQnJGU,165997
63
63
  pulumi_vsphere/provider.py,sha256=2KZA8wnKak5G_ggEPsCRYOg9Nydld7gG4Iy8-lYUBmE,22170
64
- pulumi_vsphere/pulumi-plugin.json,sha256=8H8aPgu9vxRa-x9fS7NEkeRMLYw7IPjPrdFkygAt0T8,84
64
+ pulumi_vsphere/pulumi-plugin.json,sha256=juyNLu8jYekP883dOaeAkx4KUfCeR8EDdMUuXHp-j3k,84
65
65
  pulumi_vsphere/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  pulumi_vsphere/resource_pool.py,sha256=3zCx0d4oZ7Y0ZqA1FlSJNSdInTZKzqisW625uVuQkrg,58735
67
67
  pulumi_vsphere/role.py,sha256=6E_bASXSF_lz8-IVkT-1zuDtnbIHhltq41pozWR9zYI,9753
@@ -81,7 +81,7 @@ pulumi_vsphere/vnic.py,sha256=LbtMzDi0Xtonyc9wjxzWtyDUnJlBzBRGxweEKOEYU2k,31943
81
81
  pulumi_vsphere/config/__init__.py,sha256=LBsoZbCKMHDFo-5RJPY0lRzMsShB1weBQPxL9RQBFtY,283
82
82
  pulumi_vsphere/config/__init__.pyi,sha256=gfqTwyIF6B56penDtAtbtz4xXBVBw62r8Gj7NL_YIIs,1523
83
83
  pulumi_vsphere/config/vars.py,sha256=c0e3Sbs6PG52_-6j6GLlJ4xbhwvuzHmccJTQnhKJIyY,3382
84
- pulumi_vsphere-4.15.0a1752907786.dist-info/METADATA,sha256=w4jkApTfT4xJmx4-lSbCoq2U44_0jyqW4RH9pb2uxo0,5024
85
- pulumi_vsphere-4.15.0a1752907786.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
86
- pulumi_vsphere-4.15.0a1752907786.dist-info/top_level.txt,sha256=00BIE8zaYtdsw0_tBfXR8E5sTs3lRnwlcZ6lUdu4loI,15
87
- pulumi_vsphere-4.15.0a1752907786.dist-info/RECORD,,
84
+ pulumi_vsphere-4.16.0a1753339697.dist-info/METADATA,sha256=drEgmWSoNfZZmlRV7y4f3ThUN9tMWXhPd6QneKpkNDM,5024
85
+ pulumi_vsphere-4.16.0a1753339697.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
86
+ pulumi_vsphere-4.16.0a1753339697.dist-info/top_level.txt,sha256=00BIE8zaYtdsw0_tBfXR8E5sTs3lRnwlcZ6lUdu4loI,15
87
+ pulumi_vsphere-4.16.0a1753339697.dist-info/RECORD,,