Gcp/analyticshub
@swamp/gcp/analyticshubv2026.10.23.1
01README
Google Cloud analyticshub infrastructure models
02Release Notes
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
03Behaviors
@swamp/gcp/analyticshub/dataexchangesv2026.10.23.1dataexchanges.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. |
| organization | string | Required. The organization resource path of the projects containing DataExchanges. e.g. `organizations/myorg/locations/us`. |
fn get(identifier: string)
Get a dataExchanges
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the dataExchanges |
fn sync(identifier?: string)
Sync dataExchanges state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific dataExchanges by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List dataExchanges resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
Resources
state(infinite)— A data exchange is a container that lets you share data. Along with the descr...
@swamp/gcp/analyticshub/dataexchanges-listingsv2026.10.23.1dataexchanges_listings.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. |
| allowOnlyMetadataSharing? | boolean | Optional. If true, the listing is only available to get the resource metadata. Listing is non subscribable. |
| bigqueryDataset? | object | Shared dataset i.e. BigQuery dataset source. |
| categories? | array | Optional. Categories of the listing. Up to five categories are allowed. |
| dataProvider? | object | Optional. Details of the data provider who owns the source data. |
| description? | string | Optional. Short description of the listing. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes. |
| discoveryType? | enum | Optional. Type of discovery of the listing on the discovery page. |
| displayName? | string | Required. Human-readable display name of the listing. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces (), ampersands (&) and can't start or end with spaces. Default value is an empty string. Max length: 63 bytes. |
| documentation? | string | Optional. Documentation describing the listing. |
| icon? | string | Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the contents of the field are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire. |
| logLinkedDatasetQueryUserEmail? | boolean | Optional. By default, false. If true, the Listing has an email sharing mandate enabled. |
| primaryContact? | string | Optional. Email or URL of the primary point of contact of the listing. Max Length: 1000 bytes. |
| publisher? | object | Optional. Details of the publisher who owns the listing and who can share the source data. |
| pubsubTopic? | object | Pub/Sub topic source. |
| requestAccess? | string | Optional. Email or URL of the request access of the listing. Subscribers can use this reference to request access. Max Length: 1000 bytes. |
| restrictedExportConfig? | object | Optional. If set, restricted export configuration will be propagated and enforced on the linked dataset. |
| storedProcedureConfig? | object | Optional. If set, stored procedure configuration will be propagated and enforced on the linked dataset. |
| listingId? | string | Required. The ID of the listing to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create(waitForReady?: boolean)
Create a listings
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
fn get(identifier: string)
Get a listings
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the listings |
fn update(identifier?: string, waitForReady?: boolean)
Update listings attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific listings by name (e.g. one discovered by list) |
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
fn delete(identifier: string)
Delete the listings
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the listings |
fn sync(identifier?: string)
Sync listings state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific listings by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List listings resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn get_iam_policy(options?: any)
get iam policy
| Argument | Type | Description |
|---|---|---|
| options? | any |
fn list_subscriptions(includeDeletedSubscriptions?: any, pageSize?: any, pageToken?: any)
list subscriptions
| Argument | Type | Description |
|---|---|---|
| includeDeletedSubscriptions? | any | |
| pageSize? | any | |
| pageToken? | any |
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
| Argument | Type | Description |
|---|---|---|
| policy? | any | |
| updateMask? | any |
fn subscribe(destinationDataset?: any, destinationPubsubSubscription?: any)
subscribe
| Argument | Type | Description |
|---|---|---|
| destinationDataset? | any | |
| destinationPubsubSubscription? | any |
fn test_iam_permissions(permissions?: any)
test iam permissions
| Argument | Type | Description |
|---|---|---|
| permissions? | any |
Resources
state(infinite)— A listing is what gets published into a data exchange that a subscriber can s...
@swamp/gcp/analyticshub/dataexchanges-querytemplatesv2026.10.23.1dataexchanges_querytemplates.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. |
| description? | string | Optional. Short description of the QueryTemplate. The description must not contain Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes. |
| displayName? | string | Required. Human-readable display name of the QueryTemplate. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces (), ampersands (&) and can't start or end with spaces. Default value is an empty string. Max length: 63 bytes. |
| documentation? | string | Optional. Documentation describing the QueryTemplate. |
| encryptionConfiguration? | object | Optional. Encryption configuration for the query template. If set, the customer-managed KMS key is used to encrypt the query template definition body. |
| primaryContact? | string | Optional. Email or URL of the primary point of contact of the QueryTemplate. Max Length: 1000 bytes. |
| routine? | object | Optional. The routine associated with the QueryTemplate. |
| queryTemplateId? | string | Required. The ID of the QueryTemplate to create. Must contain only Unicode letters, numbers (0-9), underscores (_). Max length: 100 bytes. |
| parent? | string | The parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn create()
Create a queryTemplates
fn get(identifier: string)
Get a queryTemplates
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the queryTemplates |
fn update(identifier?: string)
Update queryTemplates attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific queryTemplates by name (e.g. one discovered by list) |
fn delete(identifier: string)
Delete the queryTemplates
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the queryTemplates |
fn sync(identifier?: string)
Sync queryTemplates state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific queryTemplates by name (e.g. one discovered by list) |
fn list(pageSize?: number, maxPages?: number)
List queryTemplates resources
| Argument | Type | Description |
|---|---|---|
| pageSize? | number | Optional. The maximum number of results to return in a single response page. Leverage the page tokens to iterate through the entire collection. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn approve()
approve
fn submit()
submit
Resources
state(infinite)— A query template is a container for sharing table-valued functions defined by...
@swamp/gcp/analyticshub/subscriptionsv2026.10.23.1subscriptions.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. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
fn get(identifier: string)
Get a subscriptions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the subscriptions |
fn delete(identifier: string)
Delete the subscriptions
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the subscriptions |
fn sync(identifier?: string)
Sync subscriptions state from GCP
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific subscriptions by name (e.g. one discovered by list) |
fn list(filter?: string, pageSize?: number, maxPages?: number)
List subscriptions resources
| Argument | Type | Description |
|---|---|---|
| filter? | string | An expression for filtering the results of the request. Eligible fields for filtering are: + `listing` + `data_exchange` Alternatively, a literal wrapped in double quotes may be provided. This will be checked for an exact match against both fields above. In all cases, the full Data Exchange or Listing resource name must be provided. Some example of using filters: + data_exchange="projects/myproject/locations/us/dataExchanges/123" + listing="projects/123/locations/us/dataExchanges/456/listings/78 |
| pageSize? | number | The maximum number of results to return in a single response page. |
| maxPages? | number | Maximum number of pages to fetch (default: 10) |
fn get_iam_policy(options?: any)
get iam policy
| Argument | Type | Description |
|---|---|---|
| options? | any |
fn refresh()
refresh
fn revoke(revokeCommercial?: any)
revoke
| Argument | Type | Description |
|---|---|---|
| revokeCommercial? | any |
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
| Argument | Type | Description |
|---|---|---|
| policy? | any | |
| updateMask? | any |
Resources
state(infinite)— A subscription represents a subscribers' access to a particular set of publis...
04Previous Versions
2026.10.13.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.09.19.1
- Updated: dataexchanges_querytemplates
2026.09.07.1
- Updated: dataexchanges_listings
2026.08.12.2
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.08.03.1
- Updated: dataexchanges_querytemplates
2026.07.29.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.07.21.3
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.07.21.1
- Updated: dataexchanges_listings, dataexchanges_querytemplates
2026.07.20.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.07.19.2
- Updated: dataexchanges
2026.07.19.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.07.18.2
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.07.17.2
- Updated: dataexchanges_listings, dataexchanges_querytemplates
2026.07.17.1
- Updated: dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.06.08.2
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.06.07.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.05.25.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
Modified 4 behaviors
2026.05.24.1
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
2026.05.21.2
- Updated: dataexchanges, dataexchanges_listings, dataexchanges_querytemplates, subscriptions
05Stats
A
100 / 100
Downloads
35
Archive size
52.2 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
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
06Platforms
07Labels