Skip to main content

Gcp/serviceusage

@swamp/gcp/serviceusagev2026.07.28.2· 1d agoMODELS
01README

Google Cloud serviceusage infrastructure models

02Release Notes
  • Updated: services
03Models1
@swamp/gcp/serviceusage/servicesv2026.07.28.2services.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
fn get(identifier: string)
Get a services
ArgumentTypeDescription
identifierstringThe name of the services
fn sync(identifier?: string)
Sync services state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific services by name (e.g. one discovered by list)
fn list(filter?: string, pageSize?: number, maxPages?: number)
List services resources
ArgumentTypeDescription
filter?stringOnly list services that conform to the given filter. The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
pageSize?numberRequested size of the next page of data. Requested page size cannot exceed 200. If not set, the default page size is 50.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn batch_enable(serviceIds?: any)
batch enable
ArgumentTypeDescription
serviceIds?any
fn batch_get()
batch get
fn disable(checkIfServiceHasUsage?: any, disableDependentServices?: any)
disable
ArgumentTypeDescription
checkIfServiceHasUsage?any
disableDependentServices?any
fn enable(serviceIds?: any)
enable
ArgumentTypeDescription
serviceIds?any

Resources

state(infinite)— A service that is available for use by the consumer.
04Previous Versions19
2026.07.28.1
  • Updated: services
2026.07.21.2
  • Updated: services
2026.07.20.1
  • Updated: services
2026.07.19.1
  • Updated: services
2026.07.18.2
  • Updated: services
2026.07.17.1
  • Updated: services
2026.06.08.2
  • Updated: services
2026.06.07.1
  • Updated: services
2026.05.25.1
  • Updated: services

Modified 1 models

2026.05.24.1
  • Updated: services
2026.05.21.2
  • Updated: services
2026.05.21.1
2026.05.19.2
2026.05.19.1
2026.04.23.1
2026.04.04.1
  • Updated: services
2026.04.03.3
  • Updated: services
2026.04.03.1
  • Updated: services
2026.04.02.2
05Stats
A
100 / 100
Downloads
8
Archive size
24.8 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels