Gcp/cloudasset
@swamp/gcp/cloudassetv2026.10.13.1
01README
Google Cloud cloudasset infrastructure models
02Release Notes
- Updated: assets, feeds, savedqueries
03Behaviors
@swamp/gcp/cloudasset/assetsv2026.10.13.1assets.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
fn get(identifier: string)
Get a assets
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the assets |
fn sync(identifier?: string)
Sync assets state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target 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
| Argument | Type | Description |
|---|---|---|
| assetTypes? | string | A 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? | string | Asset content type. If not specified, no content but the asset name will be returned. |
| pageSize? | number | The maximum number of assets to be returned in a single response. Default is 100, minimum is 1, and maximum is 1000. |
| readTime? | string | Timestamp 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? | string | A 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? | number | Maximum 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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| feed? | object | Required. 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? | string | Required. This is the client-assigned asset feed identifier and it needs to be unique under a specific parent project/folder/organization. |
| updateMask? | string | Required. 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? | string | The 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
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the feeds |
fn update(identifier?: string)
Update feeds attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific feeds by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the feeds
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the feeds |
fn sync(identifier?: string)
Sync feeds state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific feeds by name (e.g. one discovered by list) |
fn list(maxPages?: number)
List feeds resources
| Argument | Type | Description |
|---|---|---|
| maxPages? | number | Maximum 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
| Argument | Type | Description |
|---|---|---|
| accessToken? | string | GCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| credentialsJson? | string | GCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| project? | string | GCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables. |
| scopes? | string | Comma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes. |
| quotaProject? | string | GCP 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? | string | Custom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL. |
| content? | object | The query content. |
| description? | string | The description of this saved query. This value should be fewer than 255 characters. |
| labels? | record | Labels 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? | string | The 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? | string | Required. 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? | string | The 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
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the savedQueries |
fn update(identifier?: string)
Update savedQueries attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific savedQueries by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the savedQueries
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the savedQueries |
fn sync(identifier?: string)
Sync savedQueries state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific savedQueries by name (e.g. one discovered by list) |
fn list(filter?: string, pageSize?: number, maxPages?: number)
List savedQueries resources
| Argument | Type | Description |
|---|---|---|
| filter? | string | Optional. 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? | number | Optional. 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? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— A saved query which can be shared with others or used later.
04Previous Versions
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