Skip to main content

@swamp/gcp/file

v2026.04.23.1

Google Cloud file infrastructure models

Repository

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

Labels

gcpgoogle-cloudfilecloudinfrastructure

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/file

@swamp/gcp/file/backupsv2026.04.23.1backups.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
description?stringA description of the backup with 2048 characters or less. Requests with longer descriptions will be rejected.
kmsKey?stringImmutable. KMS key name used for data encryption.
labels?recordResource labels to represent user provided metadata.
sourceFileShare?stringName of the file share in the source Filestore instance that the backup is created from.
sourceInstance?stringThe resource name of the source Filestore instance, in the format `projects/{project_number}/locations/{location_id}/instances/{instance_id}`, used to create this backup.
tags?recordOptional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment": "production", "123456789013/costCenter": "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_
backupId?stringRequired. The ID to use for the backup. The ID must be unique within the specified project and location. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen. Values that do not match this pattern will trigger an INVALID_ARGUMENT error.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a backups
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a backups
ArgumentTypeDescription
identifierstringThe name of the backups
updateUpdate backups attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
deleteDelete the backups
ArgumentTypeDescription
identifierstringThe name of the backups
syncSync backups state from GCP

Resources

state(infinite)— A Filestore backup.
@swamp/gcp/file/instancesv2026.04.23.1instances.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
deletionProtectionEnabled?booleanOptional. Indicates whether the instance is protected against deletion.
deletionProtectionReason?stringOptional. The reason for enabling deletion protection.
description?stringThe description of the instance (2048 characters or less).
directoryServices?objectDirectory Services configuration for Kerberos-based authentication.
fileShares?arrayFile system shares on the instance. For this version, only a single file share is supported.
kmsKeyName?stringKMS key name used for data encryption.
labels?recordResource labels to represent user provided metadata.
networks?arrayVPC networks to which the instance is connected. For this version, only a single network is supported.
performanceConfig?objectUsed for setting the performance configuration. If the user doesn't specify PerformanceConfig, automatically provision the default performance settings as described in https://cloud.google.com/filestore/docs/performance. Larger instances will be linearly set to more IOPS. If the instance's capacity is increased or decreased, its performance will be automatically adjusted upwards or downwards accordingly (respectively).
performanceLimits?objectThe enforced performance limits, calculated from the instance's performance configuration.
protocol?enumImmutable. The protocol indicates the access protocol for all shares in the instance. This field is immutable and it cannot be changed after the instance has been created. Default value: `NFS_V3`.
replication?objectOptional. The configuration used to replicate an instance.
tags?recordOptional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment": "production", "123456789013/costCenter": "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_
tier?enumThe service tier of the instance.
instanceId?stringRequired. The name of the instance to create. The name must be unique for the specified project and location.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a instances
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a instances
ArgumentTypeDescription
identifierstringThe name of the instances
updateUpdate instances attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
deleteDelete the instances
ArgumentTypeDescription
identifierstringThe name of the instances
syncSync instances state from GCP
pause_replicapause replica
promote_replicapromote replica
ArgumentTypeDescription
peerInstance?any
restorerestore
ArgumentTypeDescription
fileShare?any
sourceBackup?any
resume_replicaresume replica
revertrevert
ArgumentTypeDescription
targetSnapshotId?any

Resources

state(infinite)— A Filestore instance.
@swamp/gcp/file/instances-snapshotsv2026.04.23.1instances_snapshots.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
description?stringA description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
labels?recordResource labels to represent user provided metadata.
tags?recordOptional. Input only. Immutable. Tag key-value pairs bound to this resource. Each key must be a namespaced name and each value a short name. Example: "123456789012/environment": "production", "123456789013/costCenter": "marketing" See the documentation for more information: - Namespaced name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#retrieving_tag_
snapshotId?stringRequired. The ID to use for the snapshot. The ID must be unique within the specified instance. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a snapshots
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
getGet a snapshots
ArgumentTypeDescription
identifierstringThe name of the snapshots
updateUpdate snapshots attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
deleteDelete the snapshots
ArgumentTypeDescription
identifierstringThe name of the snapshots
syncSync snapshots state from GCP

Resources

state(infinite)— A Filestore snapshot.
@swamp/gcp/file/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

Resources

state(infinite)— A resource that represents a Google Cloud location.