@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 SwampHow well-documented and verifiable this extension is.
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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
getGet a acceleratorTypes
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
getGet a locations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| acceleratorConfig? | object | A TPU accelerator configuration. |
| acceleratorType? | string | Optional. The type of hardware accelerators associated with this node. |
| bootDiskConfig? | object | Sets the boot disk configuration for the TPU node. |
| cidrBlock? | string | The 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? | array | The additional data disks for the Node. |
| description? | string | The user-supplied description of the TPU. Maximum of 512 characters. |
| health? | enum | The health status of the TPU node. |
| labels? | record | Resource labels to represent user-provided metadata. |
| metadata? | record | Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script |
| networkConfig? | object | Network related configurations. |
| networkConfigs? | array | Optional. 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? | string | Required. The runtime version running in the Node. |
| schedulingConfig? | object | Sets the scheduling options for this node. |
| serviceAccount? | object | A service account. |
| shieldedInstanceConfig? | object | A set of Shielded Instance options. |
| tags? | array | Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. |
| upcomingMaintenance? | object | Upcoming Maintenance notification information. |
| nodeId? | string | The unqualified resource name. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a nodes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
getGet a nodes
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the nodes |
updateUpdate nodes attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
deleteDelete the nodes
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the nodes |
syncSync nodes state from GCP
get_guest_attributesget guest attributes
| Argument | Type | Description |
|---|---|---|
| queryPath? | any | |
| workerIds? | any |
startstart
stopstop
Resources
state(infinite)— A TPU instance.
@swamp/gcp/tpu/queuedresourcesv2026.04.23.1queuedresources.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| guaranteed? | object | Guaranteed tier definition. |
| queueingPolicy? | object | Defines the policy of the QueuedRequest. |
| reservationName? | string | Optional. Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation} |
| spot? | object | Spot tier definition. |
| state? | object | QueuedResourceState defines the details of the QueuedResource request. |
| tpu? | object | Details of the TPU resource(s) being requested. |
| queuedResourceId? | string | Optional. The unqualified resource name. Should follow the `^[A-Za-z0-9_.~+%-]+$` regex format. |
| requestId? | string | Optional. Idempotent request UUID. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a queuedResources
getGet a queuedResources
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the queuedResources |
deleteDelete the queuedResources
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
getGet a runtimeVersions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the runtimeVersions |
syncSync runtimeVersions state from GCP
Resources
state(infinite)— A runtime version that a Node can be configured with.
2026.04.04.134.7 KBApr 4, 2026
Google Cloud tpu infrastructure models
Release Notes
- Updated: queuedresources
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudtpucloudinfrastructure
2026.04.03.335.7 KBApr 3, 2026
Google Cloud tpu infrastructure models
Release Notes
- Updated: locations, acceleratortypes, nodes, queuedresources, runtimeversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudtpucloudinfrastructure
2026.04.03.135.3 KBApr 3, 2026
Google Cloud tpu infrastructure models
Release Notes
- Updated: locations, acceleratortypes, nodes, queuedresources, runtimeversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudtpucloudinfrastructure
2026.04.02.235.3 KBApr 2, 2026
Google Cloud tpu infrastructure models
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudtpucloudinfrastructure
2026.03.27.137.5 KBMar 27, 2026
Google Cloud tpu infrastructure models
Release Notes
- Added: locations, acceleratortypes, nodes, queuedresources, runtimeversions
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudtpucloudinfrastructure