Skip to main content

Gcp/cloudasset

@swamp/gcp/cloudassetv2026.10.13.1· 1d agoBEHAVIORS
01README

Google Cloud cloudasset infrastructure models

02Release Notes
  • Updated: assets, feeds, savedqueries
03Behaviors3
@swamp/gcp/cloudasset/assetsv2026.10.13.1assets.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.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
fn get(identifier: string)
Get a assets
ArgumentTypeDescription
identifierstringThe name of the assets
fn sync(identifier?: string)
Sync assets state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific assets by name (e.g. one discovered by list)
fn list(assetTypes?: string, contentType?: string, pageSize?: number, readTime?: string, relationshipTypes?: string, maxPages?: number)
List assets resources
ArgumentTypeDescription
assetTypes?stringA list of asset types to take a snapshot for. For example: "compute.googleapis.com/Disk". Regular expression is also supported. For example: * "compute.googleapis.com.*" snapshots resources whose asset type starts with "compute.googleapis.com". * ".*Instance" snapshots resources whose asset type ends with "Instance". * ".*Instance.*" snapshots resources whose asset type contains "Instance". See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular expression syntax. If the r
contentType?stringAsset content type. If not specified, no content but the asset name will be returned.
pageSize?numberThe maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000.
readTime?stringTimestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
relationshipTypes?stringA list of relationship types to output, for example: `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if content_type=RELATIONSHIP. * If specified: it snapshots specified relationships. It returns an error if any of the [relationship_types] doesn't belong to the supported relationship types of the [asset_types] or if any of the [asset_types] doesn't belong to the source types of the [relationship_types]. * Otherwise: it snapshots the supported relationships for all [asset_types]
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— An asset in Google Cloud. An asset can be any resource in the Google Cloud [r...
@swamp/gcp/cloudasset/feedsv2026.10.13.1feeds.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.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
feed?objectRequired. The new values of feed details. It must match an existing feed and the field `name` must be in the format of: projects/project_number/feeds/feed_id or folders/folder_number/feeds/feed_id or organizations/organization_number/feeds/feed_id.
feedId?stringRequired. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization.
updateMask?stringRequired. Only updates the `feed` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
fn create()
Create a feeds
fn get(identifier: string)
Get a feeds
ArgumentTypeDescription
identifierstringThe name of the feeds
fn update(identifier?: string)
Update feeds attributes
ArgumentTypeDescription
identifier?stringTarget a specific feeds by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the feeds
ArgumentTypeDescription
identifierstringThe name of the feeds
fn sync(identifier?: string)
Sync feeds state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific feeds by name (e.g. one discovered by list)
fn list(maxPages?: number)
List feeds resources
ArgumentTypeDescription
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— An asset feed used to export asset updates to a destinations. An asset feed f...
@swamp/gcp/cloudasset/savedqueriesv2026.10.13.1savedqueries.ts

Global Arguments

ArgumentTypeDescription
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.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
content?objectThe query content.
description?stringThe description of this saved query. This value should be fewer than 255 characters.
labels?recordLabels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
name?stringThe resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
savedQueryId?stringRequired. The ID to use for the saved query, which must be unique in the specified parent. It will become the final component of the saved query's resource name. This value should be 4-63 characters, and valid characters are `a-z-`. Notice that this field is required in the saved query creation, and the `name` field of the `saved_query` will be ignored.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
fn create()
Create a savedQueries
fn get(identifier: string)
Get a savedQueries
ArgumentTypeDescription
identifierstringThe name of the savedQueries
fn update(identifier?: string)
Update savedQueries attributes
ArgumentTypeDescription
identifier?stringTarget a specific savedQueries by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the savedQueries
ArgumentTypeDescription
identifierstringThe name of the savedQueries
fn sync(identifier?: string)
Sync savedQueries state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific savedQueries by name (e.g. one discovered by list)
fn list(filter?: string, pageSize?: number, maxPages?: number)
List savedQueries resources
ArgumentTypeDescription
filter?stringOptional. The expression to filter resources. The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to group the combinations. The expression may also contain regular expressions. See https://google.aip.dev/160 for more information on the grammar.
pageSize?numberOptional. The maximum number of saved queries to return per page. The service may return fewer than this value. If unspecified, at most 50 will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— A saved query which can be shared with others or used later.
04Previous Versions19
2026.09.28.1
  • Updated: assets
2026.08.12.2
  • Updated: assets, feeds, savedqueries
2026.07.29.1
  • Updated: assets, feeds, savedqueries
2026.07.21.4
  • Updated: assets
2026.07.21.1
  • Updated: feeds, savedqueries
2026.07.20.2
  • Updated: assets
2026.07.20.1
  • Updated: assets, feeds, savedqueries
2026.07.19.1
  • Updated: assets, feeds, savedqueries
2026.07.18.2
  • Updated: assets, feeds, savedqueries
2026.07.17.3
  • Updated: savedqueries
2026.07.17.2
  • Updated: feeds
2026.07.17.1
  • Updated: feeds, savedqueries
2026.06.26.1
  • Updated: assets
2026.06.08.2
  • Updated: assets, feeds, savedqueries
2026.06.07.1
  • Updated: assets, feeds, savedqueries
2026.05.25.2
  • Updated: feeds

Modified 3 behaviors

2026.05.24.1
  • Updated: assets, feeds, savedqueries
2026.05.21.2
  • Updated: assets, feeds, savedqueries
2026.05.21.1
05Stats
A
93 / 100
Downloads
60
Archive size
48.5 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
  • License1/2partial

    no SPDX license declared

  • Verified public repository2/2earned
06Platforms
07Labels