Skip to main content

@swamp/gcp/tpu

v2026.04.23.1

Google Cloud tpu infrastructure models

Repository

https://github.com/systeminit/swamp-extensions

Labels

gcpgoogle-cloudtpucloudinfrastructure

Contents

Quality score

Verified by Swamp

How well-documented and verifiable this extension is.

100%

Grade A

  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned

Install

$ swamp extension pull @swamp/gcp/tpu

@swamp/gcp/tpu/acceleratortypesv2026.04.23.1acceleratortypes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a acceleratorTypes
ArgumentTypeDescription
identifierstringThe name of the acceleratorTypes
syncSync acceleratorTypes state from GCP

Resources

state(infinite)— A accelerator type that a Node can be configured with.
@swamp/gcp/tpu/locationsv2026.04.23.1locations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
getGet a locations
ArgumentTypeDescription
identifierstringThe name of the locations
syncSync locations state from GCP
generate_service_identitygenerate service identity

Resources

state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/tpu/nodesv2026.04.23.1nodes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
acceleratorConfig?objectA TPU accelerator configuration.
acceleratorType?stringOptional. The type of hardware accelerators associated with this node.
bootDiskConfig?objectSets the boot disk configuration for the TPU node.
cidrBlock?stringThe CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR
dataDisks?arrayThe additional data disks for the Node.
description?stringThe user-supplied description of the TPU. Maximum of 512 characters.
health?enumThe health status of the TPU node.
labels?recordResource labels to represent user-provided metadata.
metadata?recordCustom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
networkConfig?objectNetwork related configurations.
networkConfigs?arrayOptional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
runtimeVersion?stringRequired. The runtime version running in the Node.
schedulingConfig?objectSets the scheduling options for this node.
serviceAccount?objectA service account.
shieldedInstanceConfig?objectA set of Shielded Instance options.
tags?arrayTags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
upcomingMaintenance?objectUpcoming Maintenance notification information.
nodeId?stringThe unqualified resource name.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a nodes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a nodes
ArgumentTypeDescription
identifierstringThe name of the nodes
updateUpdate nodes attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
deleteDelete the nodes
ArgumentTypeDescription
identifierstringThe name of the nodes
syncSync nodes state from GCP
get_guest_attributesget guest attributes
ArgumentTypeDescription
queryPath?any
workerIds?any
startstart
stopstop

Resources

state(infinite)— A TPU instance.
@swamp/gcp/tpu/queuedresourcesv2026.04.23.1queuedresources.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
guaranteed?objectGuaranteed tier definition.
queueingPolicy?objectDefines the policy of the QueuedRequest.
reservationName?stringOptional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}
spot?objectSpot tier definition.
state?objectQueuedResourceState defines the details of the QueuedResource request.
tpu?objectDetails of the TPU resource(s) being requested.
queuedResourceId?stringOptional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format.
requestId?stringOptional. Idempotent request UUID.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a queuedResources
getGet a queuedResources
ArgumentTypeDescription
identifierstringThe name of the queuedResources
deleteDelete the queuedResources
ArgumentTypeDescription
identifierstringThe name of the queuedResources
syncSync queuedResources state from GCP
resetreset

Resources

state(infinite)— A QueuedResource represents a request for resources that will be placed in a ...
@swamp/gcp/tpu/runtimeversionsv2026.04.23.1runtimeversions.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
getGet a runtimeVersions
ArgumentTypeDescription
identifierstringThe name of the runtimeVersions
syncSync runtimeVersions state from GCP

Resources

state(infinite)— A runtime version that a Node can be configured with.