pulumi-gcp 8.21.0a1740810968__py3-none-any.whl → 8.21.0a1741103856__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.
Files changed (50) hide show
  1. pulumi_gcp/__init__.py +16 -0
  2. pulumi_gcp/alloydb/__init__.py +1 -0
  3. pulumi_gcp/alloydb/get_cluster.py +491 -0
  4. pulumi_gcp/alloydb/outputs.py +808 -0
  5. pulumi_gcp/appengine/_inputs.py +3 -3
  6. pulumi_gcp/appengine/outputs.py +2 -2
  7. pulumi_gcp/backupdisasterrecovery/backup_plan.py +16 -0
  8. pulumi_gcp/backupdisasterrecovery/backup_plan_association.py +16 -0
  9. pulumi_gcp/backupdisasterrecovery/management_server.py +16 -0
  10. pulumi_gcp/bigquery/_inputs.py +6 -8
  11. pulumi_gcp/bigquery/data_transfer_config.py +28 -0
  12. pulumi_gcp/bigquery/outputs.py +4 -5
  13. pulumi_gcp/chronicle/rule_deployment.py +21 -7
  14. pulumi_gcp/composer/get_environment.py +12 -0
  15. pulumi_gcp/composer/get_image_versions.py +12 -0
  16. pulumi_gcp/composer/get_user_workloads_config_map.py +12 -0
  17. pulumi_gcp/composer/get_user_workloads_secret.py +12 -0
  18. pulumi_gcp/compute/network_peering_routes_config.py +140 -6
  19. pulumi_gcp/datacatalog/entry_group.py +4 -0
  20. pulumi_gcp/datacatalog/tag_template.py +4 -0
  21. pulumi_gcp/developerconnect/_inputs.py +575 -0
  22. pulumi_gcp/developerconnect/connection.py +200 -0
  23. pulumi_gcp/developerconnect/git_repository_link.py +12 -0
  24. pulumi_gcp/developerconnect/outputs.py +461 -0
  25. pulumi_gcp/gemini/__init__.py +1 -0
  26. pulumi_gcp/gemini/data_sharing_with_google_setting.py +6 -0
  27. pulumi_gcp/gemini/data_sharing_with_google_setting_binding.py +722 -0
  28. pulumi_gcp/gemini/logging_setting.py +4 -0
  29. pulumi_gcp/gemini/logging_setting_binding.py +12 -0
  30. pulumi_gcp/iam/organizations_policy_binding.py +10 -2
  31. pulumi_gcp/iam/projects_policy_binding.py +10 -2
  32. pulumi_gcp/iam/workforce_pool_provider.py +63 -11
  33. pulumi_gcp/parametermanager/get_parameter_version_render.py +3 -0
  34. pulumi_gcp/parametermanager/get_regional_parameter_version_render.py +3 -0
  35. pulumi_gcp/projects/__init__.py +1 -0
  36. pulumi_gcp/projects/get_ancestry.py +150 -0
  37. pulumi_gcp/projects/outputs.py +30 -0
  38. pulumi_gcp/pulumi-plugin.json +1 -1
  39. pulumi_gcp/redis/cluster.py +211 -94
  40. pulumi_gcp/secretmanager/secret_version.py +73 -23
  41. pulumi_gcp/spanner/__init__.py +1 -0
  42. pulumi_gcp/spanner/instance_partition.py +658 -0
  43. pulumi_gcp/sql/user.py +20 -14
  44. pulumi_gcp/tpu/_inputs.py +150 -1
  45. pulumi_gcp/tpu/outputs.py +114 -1
  46. pulumi_gcp/tpu/v2_queued_resource.py +74 -0
  47. {pulumi_gcp-8.21.0a1740810968.dist-info → pulumi_gcp-8.21.0a1741103856.dist-info}/METADATA +1 -1
  48. {pulumi_gcp-8.21.0a1740810968.dist-info → pulumi_gcp-8.21.0a1741103856.dist-info}/RECORD +50 -46
  49. {pulumi_gcp-8.21.0a1740810968.dist-info → pulumi_gcp-8.21.0a1741103856.dist-info}/WHEEL +0 -0
  50. {pulumi_gcp-8.21.0a1740810968.dist-info → pulumi_gcp-8.21.0a1741103856.dist-info}/top_level.txt +0 -0
pulumi_gcp/sql/user.py CHANGED
@@ -38,8 +38,6 @@ class UserArgs:
38
38
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
39
39
 
40
40
  Possible values are: `ABANDON`.
41
-
42
- - - -
43
41
  :param pulumi.Input[str] host: The host the user can connect from. This is only supported
44
42
  for BUILT_IN users in MySQL instances. Don't set this field for PostgreSQL and SQL Server instances.
45
43
  Can be an IP address. Changing this forces a new resource to be created.
@@ -96,8 +94,6 @@ class UserArgs:
96
94
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
97
95
 
98
96
  Possible values are: `ABANDON`.
99
-
100
- - - -
101
97
  """
102
98
  return pulumi.get(self, "deletion_policy")
103
99
 
@@ -206,8 +202,6 @@ class _UserState:
206
202
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
207
203
 
208
204
  Possible values are: `ABANDON`.
209
-
210
- - - -
211
205
  :param pulumi.Input[str] host: The host the user can connect from. This is only supported
212
206
  for BUILT_IN users in MySQL instances. Don't set this field for PostgreSQL and SQL Server instances.
213
207
  Can be an IP address. Changing this forces a new resource to be created.
@@ -256,8 +250,6 @@ class _UserState:
256
250
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
257
251
 
258
252
  Possible values are: `ABANDON`.
259
-
260
- - - -
261
253
  """
262
254
  return pulumi.get(self, "deletion_policy")
263
255
 
@@ -463,6 +455,16 @@ class User(pulumi.CustomResource):
463
455
  type="CLOUD_IAM_GROUP")
464
456
  ```
465
457
 
458
+ ## Ephemeral Attributes Reference
459
+
460
+ The following write-only attributes are supported:
461
+
462
+ * `password_wo` - (Optional) The password for the user. Can be updated. For Postgres
463
+ instances this is a Required field, unless type is set to either CLOUD_IAM_USER
464
+ or CLOUD_IAM_SERVICE_ACCOUNT. Don't set this field for CLOUD_IAM_USER
465
+ and CLOUD_IAM_SERVICE_ACCOUNT user types for any Cloud SQL instance.
466
+ **Note**: This property is write-only and will not be read from the API.
467
+
466
468
  ## Import
467
469
 
468
470
  SQL users for MySQL databases can be imported using the `project`, `instance`, `host` and `name`, e.g.
@@ -494,8 +496,6 @@ class User(pulumi.CustomResource):
494
496
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
495
497
 
496
498
  Possible values are: `ABANDON`.
497
-
498
- - - -
499
499
  :param pulumi.Input[str] host: The host the user can connect from. This is only supported
500
500
  for BUILT_IN users in MySQL instances. Don't set this field for PostgreSQL and SQL Server instances.
501
501
  Can be an IP address. Changing this forces a new resource to be created.
@@ -602,6 +602,16 @@ class User(pulumi.CustomResource):
602
602
  type="CLOUD_IAM_GROUP")
603
603
  ```
604
604
 
605
+ ## Ephemeral Attributes Reference
606
+
607
+ The following write-only attributes are supported:
608
+
609
+ * `password_wo` - (Optional) The password for the user. Can be updated. For Postgres
610
+ instances this is a Required field, unless type is set to either CLOUD_IAM_USER
611
+ or CLOUD_IAM_SERVICE_ACCOUNT. Don't set this field for CLOUD_IAM_USER
612
+ and CLOUD_IAM_SERVICE_ACCOUNT user types for any Cloud SQL instance.
613
+ **Note**: This property is write-only and will not be read from the API.
614
+
605
615
  ## Import
606
616
 
607
617
  SQL users for MySQL databases can be imported using the `project`, `instance`, `host` and `name`, e.g.
@@ -702,8 +712,6 @@ class User(pulumi.CustomResource):
702
712
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
703
713
 
704
714
  Possible values are: `ABANDON`.
705
-
706
- - - -
707
715
  :param pulumi.Input[str] host: The host the user can connect from. This is only supported
708
716
  for BUILT_IN users in MySQL instances. Don't set this field for PostgreSQL and SQL Server instances.
709
717
  Can be an IP address. Changing this forces a new resource to be created.
@@ -748,8 +756,6 @@ class User(pulumi.CustomResource):
748
756
  for Postgres, where users cannot be deleted from the API if they have been granted SQL roles.
749
757
 
750
758
  Possible values are: `ABANDON`.
751
-
752
- - - -
753
759
  """
754
760
  return pulumi.get(self, "deletion_policy")
755
761
 
pulumi_gcp/tpu/_inputs.py CHANGED
@@ -25,6 +25,8 @@ __all__ = [
25
25
  'V2QueuedResourceTpuNodeSpecArgsDict',
26
26
  'V2QueuedResourceTpuNodeSpecNodeArgs',
27
27
  'V2QueuedResourceTpuNodeSpecNodeArgsDict',
28
+ 'V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs',
29
+ 'V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgsDict',
28
30
  'V2VmAcceleratorConfigArgs',
29
31
  'V2VmAcceleratorConfigArgsDict',
30
32
  'V2VmDataDiskArgs',
@@ -258,6 +260,11 @@ if not MYPY:
258
260
  """
259
261
  Text description of the TPU.
260
262
  """
263
+ network_config: NotRequired[pulumi.Input['V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgsDict']]
264
+ """
265
+ Network configurations for the TPU node.
266
+ Structure is documented below.
267
+ """
261
268
  elif False:
262
269
  V2QueuedResourceTpuNodeSpecNodeArgsDict: TypeAlias = Mapping[str, Any]
263
270
 
@@ -266,17 +273,22 @@ class V2QueuedResourceTpuNodeSpecNodeArgs:
266
273
  def __init__(__self__, *,
267
274
  runtime_version: pulumi.Input[str],
268
275
  accelerator_type: Optional[pulumi.Input[str]] = None,
269
- description: Optional[pulumi.Input[str]] = None):
276
+ description: Optional[pulumi.Input[str]] = None,
277
+ network_config: Optional[pulumi.Input['V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs']] = None):
270
278
  """
271
279
  :param pulumi.Input[str] runtime_version: Runtime version for the TPU.
272
280
  :param pulumi.Input[str] accelerator_type: TPU accelerator type for the TPU. If not specified, this defaults to 'v2-8'.
273
281
  :param pulumi.Input[str] description: Text description of the TPU.
282
+ :param pulumi.Input['V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs'] network_config: Network configurations for the TPU node.
283
+ Structure is documented below.
274
284
  """
275
285
  pulumi.set(__self__, "runtime_version", runtime_version)
276
286
  if accelerator_type is not None:
277
287
  pulumi.set(__self__, "accelerator_type", accelerator_type)
278
288
  if description is not None:
279
289
  pulumi.set(__self__, "description", description)
290
+ if network_config is not None:
291
+ pulumi.set(__self__, "network_config", network_config)
280
292
 
281
293
  @property
282
294
  @pulumi.getter(name="runtimeVersion")
@@ -314,6 +326,143 @@ class V2QueuedResourceTpuNodeSpecNodeArgs:
314
326
  def description(self, value: Optional[pulumi.Input[str]]):
315
327
  pulumi.set(self, "description", value)
316
328
 
329
+ @property
330
+ @pulumi.getter(name="networkConfig")
331
+ def network_config(self) -> Optional[pulumi.Input['V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs']]:
332
+ """
333
+ Network configurations for the TPU node.
334
+ Structure is documented below.
335
+ """
336
+ return pulumi.get(self, "network_config")
337
+
338
+ @network_config.setter
339
+ def network_config(self, value: Optional[pulumi.Input['V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs']]):
340
+ pulumi.set(self, "network_config", value)
341
+
342
+
343
+ if not MYPY:
344
+ class V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgsDict(TypedDict):
345
+ can_ip_forward: NotRequired[pulumi.Input[bool]]
346
+ """
347
+ Allows the TPU node to send and receive packets with non-matching destination or source
348
+ IPs. This is required if you plan to use the TPU workers to forward routes.
349
+ """
350
+ enable_external_ips: NotRequired[pulumi.Input[bool]]
351
+ """
352
+ Indicates that external IP addresses would be associated with the TPU workers. If set to
353
+ false, the specified subnetwork or network should have Private Google Access enabled.
354
+ """
355
+ network: NotRequired[pulumi.Input[str]]
356
+ """
357
+ The name of the network for the TPU node. It must be a preexisting Google Compute Engine
358
+ network. If none is provided, "default" will be used.
359
+ """
360
+ queue_count: NotRequired[pulumi.Input[int]]
361
+ """
362
+ Specifies networking queue count for TPU VM instance's network interface.
363
+ """
364
+ subnetwork: NotRequired[pulumi.Input[str]]
365
+ """
366
+ The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
367
+ Engine subnetwork. If none is provided, "default" will be used.
368
+ """
369
+ elif False:
370
+ V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgsDict: TypeAlias = Mapping[str, Any]
371
+
372
+ @pulumi.input_type
373
+ class V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs:
374
+ def __init__(__self__, *,
375
+ can_ip_forward: Optional[pulumi.Input[bool]] = None,
376
+ enable_external_ips: Optional[pulumi.Input[bool]] = None,
377
+ network: Optional[pulumi.Input[str]] = None,
378
+ queue_count: Optional[pulumi.Input[int]] = None,
379
+ subnetwork: Optional[pulumi.Input[str]] = None):
380
+ """
381
+ :param pulumi.Input[bool] can_ip_forward: Allows the TPU node to send and receive packets with non-matching destination or source
382
+ IPs. This is required if you plan to use the TPU workers to forward routes.
383
+ :param pulumi.Input[bool] enable_external_ips: Indicates that external IP addresses would be associated with the TPU workers. If set to
384
+ false, the specified subnetwork or network should have Private Google Access enabled.
385
+ :param pulumi.Input[str] network: The name of the network for the TPU node. It must be a preexisting Google Compute Engine
386
+ network. If none is provided, "default" will be used.
387
+ :param pulumi.Input[int] queue_count: Specifies networking queue count for TPU VM instance's network interface.
388
+ :param pulumi.Input[str] subnetwork: The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
389
+ Engine subnetwork. If none is provided, "default" will be used.
390
+ """
391
+ if can_ip_forward is not None:
392
+ pulumi.set(__self__, "can_ip_forward", can_ip_forward)
393
+ if enable_external_ips is not None:
394
+ pulumi.set(__self__, "enable_external_ips", enable_external_ips)
395
+ if network is not None:
396
+ pulumi.set(__self__, "network", network)
397
+ if queue_count is not None:
398
+ pulumi.set(__self__, "queue_count", queue_count)
399
+ if subnetwork is not None:
400
+ pulumi.set(__self__, "subnetwork", subnetwork)
401
+
402
+ @property
403
+ @pulumi.getter(name="canIpForward")
404
+ def can_ip_forward(self) -> Optional[pulumi.Input[bool]]:
405
+ """
406
+ Allows the TPU node to send and receive packets with non-matching destination or source
407
+ IPs. This is required if you plan to use the TPU workers to forward routes.
408
+ """
409
+ return pulumi.get(self, "can_ip_forward")
410
+
411
+ @can_ip_forward.setter
412
+ def can_ip_forward(self, value: Optional[pulumi.Input[bool]]):
413
+ pulumi.set(self, "can_ip_forward", value)
414
+
415
+ @property
416
+ @pulumi.getter(name="enableExternalIps")
417
+ def enable_external_ips(self) -> Optional[pulumi.Input[bool]]:
418
+ """
419
+ Indicates that external IP addresses would be associated with the TPU workers. If set to
420
+ false, the specified subnetwork or network should have Private Google Access enabled.
421
+ """
422
+ return pulumi.get(self, "enable_external_ips")
423
+
424
+ @enable_external_ips.setter
425
+ def enable_external_ips(self, value: Optional[pulumi.Input[bool]]):
426
+ pulumi.set(self, "enable_external_ips", value)
427
+
428
+ @property
429
+ @pulumi.getter
430
+ def network(self) -> Optional[pulumi.Input[str]]:
431
+ """
432
+ The name of the network for the TPU node. It must be a preexisting Google Compute Engine
433
+ network. If none is provided, "default" will be used.
434
+ """
435
+ return pulumi.get(self, "network")
436
+
437
+ @network.setter
438
+ def network(self, value: Optional[pulumi.Input[str]]):
439
+ pulumi.set(self, "network", value)
440
+
441
+ @property
442
+ @pulumi.getter(name="queueCount")
443
+ def queue_count(self) -> Optional[pulumi.Input[int]]:
444
+ """
445
+ Specifies networking queue count for TPU VM instance's network interface.
446
+ """
447
+ return pulumi.get(self, "queue_count")
448
+
449
+ @queue_count.setter
450
+ def queue_count(self, value: Optional[pulumi.Input[int]]):
451
+ pulumi.set(self, "queue_count", value)
452
+
453
+ @property
454
+ @pulumi.getter
455
+ def subnetwork(self) -> Optional[pulumi.Input[str]]:
456
+ """
457
+ The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
458
+ Engine subnetwork. If none is provided, "default" will be used.
459
+ """
460
+ return pulumi.get(self, "subnetwork")
461
+
462
+ @subnetwork.setter
463
+ def subnetwork(self, value: Optional[pulumi.Input[str]]):
464
+ pulumi.set(self, "subnetwork", value)
465
+
317
466
 
318
467
  if not MYPY:
319
468
  class V2VmAcceleratorConfigArgsDict(TypedDict):
pulumi_gcp/tpu/outputs.py CHANGED
@@ -21,6 +21,7 @@ __all__ = [
21
21
  'V2QueuedResourceTpu',
22
22
  'V2QueuedResourceTpuNodeSpec',
23
23
  'V2QueuedResourceTpuNodeSpecNode',
24
+ 'V2QueuedResourceTpuNodeSpecNodeNetworkConfig',
24
25
  'V2VmAcceleratorConfig',
25
26
  'V2VmDataDisk',
26
27
  'V2VmNetworkConfig',
@@ -209,6 +210,8 @@ class V2QueuedResourceTpuNodeSpecNode(dict):
209
210
  suggest = "runtime_version"
210
211
  elif key == "acceleratorType":
211
212
  suggest = "accelerator_type"
213
+ elif key == "networkConfig":
214
+ suggest = "network_config"
212
215
 
213
216
  if suggest:
214
217
  pulumi.log.warn(f"Key '{key}' not found in V2QueuedResourceTpuNodeSpecNode. Access the value via the '{suggest}' property getter instead.")
@@ -224,17 +227,22 @@ class V2QueuedResourceTpuNodeSpecNode(dict):
224
227
  def __init__(__self__, *,
225
228
  runtime_version: str,
226
229
  accelerator_type: Optional[str] = None,
227
- description: Optional[str] = None):
230
+ description: Optional[str] = None,
231
+ network_config: Optional['outputs.V2QueuedResourceTpuNodeSpecNodeNetworkConfig'] = None):
228
232
  """
229
233
  :param str runtime_version: Runtime version for the TPU.
230
234
  :param str accelerator_type: TPU accelerator type for the TPU. If not specified, this defaults to 'v2-8'.
231
235
  :param str description: Text description of the TPU.
236
+ :param 'V2QueuedResourceTpuNodeSpecNodeNetworkConfigArgs' network_config: Network configurations for the TPU node.
237
+ Structure is documented below.
232
238
  """
233
239
  pulumi.set(__self__, "runtime_version", runtime_version)
234
240
  if accelerator_type is not None:
235
241
  pulumi.set(__self__, "accelerator_type", accelerator_type)
236
242
  if description is not None:
237
243
  pulumi.set(__self__, "description", description)
244
+ if network_config is not None:
245
+ pulumi.set(__self__, "network_config", network_config)
238
246
 
239
247
  @property
240
248
  @pulumi.getter(name="runtimeVersion")
@@ -260,6 +268,111 @@ class V2QueuedResourceTpuNodeSpecNode(dict):
260
268
  """
261
269
  return pulumi.get(self, "description")
262
270
 
271
+ @property
272
+ @pulumi.getter(name="networkConfig")
273
+ def network_config(self) -> Optional['outputs.V2QueuedResourceTpuNodeSpecNodeNetworkConfig']:
274
+ """
275
+ Network configurations for the TPU node.
276
+ Structure is documented below.
277
+ """
278
+ return pulumi.get(self, "network_config")
279
+
280
+
281
+ @pulumi.output_type
282
+ class V2QueuedResourceTpuNodeSpecNodeNetworkConfig(dict):
283
+ @staticmethod
284
+ def __key_warning(key: str):
285
+ suggest = None
286
+ if key == "canIpForward":
287
+ suggest = "can_ip_forward"
288
+ elif key == "enableExternalIps":
289
+ suggest = "enable_external_ips"
290
+ elif key == "queueCount":
291
+ suggest = "queue_count"
292
+
293
+ if suggest:
294
+ pulumi.log.warn(f"Key '{key}' not found in V2QueuedResourceTpuNodeSpecNodeNetworkConfig. Access the value via the '{suggest}' property getter instead.")
295
+
296
+ def __getitem__(self, key: str) -> Any:
297
+ V2QueuedResourceTpuNodeSpecNodeNetworkConfig.__key_warning(key)
298
+ return super().__getitem__(key)
299
+
300
+ def get(self, key: str, default = None) -> Any:
301
+ V2QueuedResourceTpuNodeSpecNodeNetworkConfig.__key_warning(key)
302
+ return super().get(key, default)
303
+
304
+ def __init__(__self__, *,
305
+ can_ip_forward: Optional[bool] = None,
306
+ enable_external_ips: Optional[bool] = None,
307
+ network: Optional[str] = None,
308
+ queue_count: Optional[int] = None,
309
+ subnetwork: Optional[str] = None):
310
+ """
311
+ :param bool can_ip_forward: Allows the TPU node to send and receive packets with non-matching destination or source
312
+ IPs. This is required if you plan to use the TPU workers to forward routes.
313
+ :param bool enable_external_ips: Indicates that external IP addresses would be associated with the TPU workers. If set to
314
+ false, the specified subnetwork or network should have Private Google Access enabled.
315
+ :param str network: The name of the network for the TPU node. It must be a preexisting Google Compute Engine
316
+ network. If none is provided, "default" will be used.
317
+ :param int queue_count: Specifies networking queue count for TPU VM instance's network interface.
318
+ :param str subnetwork: The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
319
+ Engine subnetwork. If none is provided, "default" will be used.
320
+ """
321
+ if can_ip_forward is not None:
322
+ pulumi.set(__self__, "can_ip_forward", can_ip_forward)
323
+ if enable_external_ips is not None:
324
+ pulumi.set(__self__, "enable_external_ips", enable_external_ips)
325
+ if network is not None:
326
+ pulumi.set(__self__, "network", network)
327
+ if queue_count is not None:
328
+ pulumi.set(__self__, "queue_count", queue_count)
329
+ if subnetwork is not None:
330
+ pulumi.set(__self__, "subnetwork", subnetwork)
331
+
332
+ @property
333
+ @pulumi.getter(name="canIpForward")
334
+ def can_ip_forward(self) -> Optional[bool]:
335
+ """
336
+ Allows the TPU node to send and receive packets with non-matching destination or source
337
+ IPs. This is required if you plan to use the TPU workers to forward routes.
338
+ """
339
+ return pulumi.get(self, "can_ip_forward")
340
+
341
+ @property
342
+ @pulumi.getter(name="enableExternalIps")
343
+ def enable_external_ips(self) -> Optional[bool]:
344
+ """
345
+ Indicates that external IP addresses would be associated with the TPU workers. If set to
346
+ false, the specified subnetwork or network should have Private Google Access enabled.
347
+ """
348
+ return pulumi.get(self, "enable_external_ips")
349
+
350
+ @property
351
+ @pulumi.getter
352
+ def network(self) -> Optional[str]:
353
+ """
354
+ The name of the network for the TPU node. It must be a preexisting Google Compute Engine
355
+ network. If none is provided, "default" will be used.
356
+ """
357
+ return pulumi.get(self, "network")
358
+
359
+ @property
360
+ @pulumi.getter(name="queueCount")
361
+ def queue_count(self) -> Optional[int]:
362
+ """
363
+ Specifies networking queue count for TPU VM instance's network interface.
364
+ """
365
+ return pulumi.get(self, "queue_count")
366
+
367
+ @property
368
+ @pulumi.getter
369
+ def subnetwork(self) -> Optional[str]:
370
+ """
371
+ The name of the subnetwork for the TPU node. It must be a preexisting Google Compute
372
+ Engine subnetwork. If none is provided, "default" will be used.
373
+ """
374
+ return pulumi.get(self, "subnetwork")
375
+
263
376
 
264
377
  @pulumi.output_type
265
378
  class V2VmAcceleratorConfig(dict):
@@ -217,6 +217,43 @@ class V2QueuedResource(pulumi.CustomResource):
217
217
  }],
218
218
  })
219
219
  ```
220
+ ### Tpu V2 Queued Resource Full
221
+
222
+ ```python
223
+ import pulumi
224
+ import pulumi_gcp as gcp
225
+
226
+ network = gcp.compute.Network("network",
227
+ name="tpu-net",
228
+ auto_create_subnetworks=False)
229
+ subnet = gcp.compute.Subnetwork("subnet",
230
+ name="tpu-subnet",
231
+ ip_cidr_range="10.0.0.0/16",
232
+ region="us-central1",
233
+ network=network.id)
234
+ qr = gcp.tpu.V2QueuedResource("qr",
235
+ name="test-qr",
236
+ zone="us-central1-c",
237
+ project="my-project-name",
238
+ tpu={
239
+ "node_specs": [{
240
+ "parent": "projects/my-project-name/locations/us-central1-c",
241
+ "node_id": "test-tpu",
242
+ "node": {
243
+ "runtime_version": "tpu-vm-tf-2.13.0",
244
+ "accelerator_type": "v2-8",
245
+ "description": "Text description of the TPU.",
246
+ "network_config": {
247
+ "can_ip_forward": True,
248
+ "enable_external_ips": True,
249
+ "network": network.id,
250
+ "subnetwork": subnet.id,
251
+ "queue_count": 32,
252
+ },
253
+ },
254
+ }],
255
+ })
256
+ ```
220
257
 
221
258
  ## Import
222
259
 
@@ -291,6 +328,43 @@ class V2QueuedResource(pulumi.CustomResource):
291
328
  }],
292
329
  })
293
330
  ```
331
+ ### Tpu V2 Queued Resource Full
332
+
333
+ ```python
334
+ import pulumi
335
+ import pulumi_gcp as gcp
336
+
337
+ network = gcp.compute.Network("network",
338
+ name="tpu-net",
339
+ auto_create_subnetworks=False)
340
+ subnet = gcp.compute.Subnetwork("subnet",
341
+ name="tpu-subnet",
342
+ ip_cidr_range="10.0.0.0/16",
343
+ region="us-central1",
344
+ network=network.id)
345
+ qr = gcp.tpu.V2QueuedResource("qr",
346
+ name="test-qr",
347
+ zone="us-central1-c",
348
+ project="my-project-name",
349
+ tpu={
350
+ "node_specs": [{
351
+ "parent": "projects/my-project-name/locations/us-central1-c",
352
+ "node_id": "test-tpu",
353
+ "node": {
354
+ "runtime_version": "tpu-vm-tf-2.13.0",
355
+ "accelerator_type": "v2-8",
356
+ "description": "Text description of the TPU.",
357
+ "network_config": {
358
+ "can_ip_forward": True,
359
+ "enable_external_ips": True,
360
+ "network": network.id,
361
+ "subnetwork": subnet.id,
362
+ "queue_count": 32,
363
+ },
364
+ },
365
+ }],
366
+ })
367
+ ```
294
368
 
295
369
  ## Import
296
370
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pulumi_gcp
3
- Version: 8.21.0a1740810968
3
+ Version: 8.21.0a1741103856
4
4
  Summary: A Pulumi package for creating and managing Google Cloud Platform resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io