Skip to main content

Gcp/apigateway

@swamp/gcp/apigatewayv2026.10.23.1· AGPL-3.0-or-later· 3d agoBEHAVIORS
01README

Google Cloud apigateway infrastructure models

02Release Notes
  • Updated: locations, apis, apis_configs, gateways
03Behaviors4
@swamp/gcp/apigateway/apisv2026.10.23.1apis.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.
displayName?stringOptional. Display name.
labels?recordOptional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
managedService?stringOptional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
apiId?stringRequired. Identifier to assign to the API. Must be unique within scope of the parent resource.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a apis
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a apis
ArgumentTypeDescription
identifierstringThe name of the apis
fn update(identifier?: string, waitForReady?: boolean)
Update apis attributes
ArgumentTypeDescription
identifier?stringTarget a specific apis by name (e.g. one discovered by list)
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn delete(identifier: string)
Delete the apis
ArgumentTypeDescription
identifierstringThe name of the apis
fn sync(identifier?: string)
Sync apis state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific apis by name (e.g. one discovered by list)
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List apis resources
ArgumentTypeDescription
filter?stringFilter.
orderBy?stringOrder by parameters.
pageSize?numberPage size.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn get_iam_policy(options_requestedPolicyVersion?: any)
get iam policy
ArgumentTypeDescription
options_requestedPolicyVersion?any
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
ArgumentTypeDescription
policy?any
updateMask?any
fn test_iam_permissions(permissions?: any)
test iam permissions
ArgumentTypeDescription
permissions?any

Resources

state(infinite)— An API that can be served by one or more Gateways.
@swamp/gcp/apigateway/apis-configsv2026.10.23.1apis_configs.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.
displayName?stringOptional. Display name.
gatewayServiceAccount?stringImmutable. The Google Cloud IAM Service Account that Gateways serving this config should use to authenticate to other services. This may either be the Service Account's email (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used when the service is a GCP resource such as a Cloud Run Service or an IAP-secured service.
grpcServices?arrayOptional. gRPC service definition files. If specified, openapi_documents must not be included.
labels?recordOptional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
managedServiceConfigs?arrayOptional. Service Configuration files. At least one must be included when using gRPC service definitions. See https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview for the expected file contents. If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using "last one wins" semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merge
openapiDocuments?arrayOptional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included.
apiConfigId?stringRequired. Identifier to assign to the API Config. Must be unique within scope of the parent resource.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a configs
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a configs
ArgumentTypeDescription
identifierstringThe name of the configs
fn update(identifier?: string, waitForReady?: boolean)
Update configs attributes
ArgumentTypeDescription
identifier?stringTarget a specific configs by name (e.g. one discovered by list)
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn delete(identifier: string)
Delete the configs
ArgumentTypeDescription
identifierstringThe name of the configs
fn sync(identifier?: string)
Sync configs state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific configs by name (e.g. one discovered by list)
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List configs resources
ArgumentTypeDescription
filter?stringFilter.
orderBy?stringOrder by parameters.
pageSize?numberPage size.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn get_iam_policy(options_requestedPolicyVersion?: any)
get iam policy
ArgumentTypeDescription
options_requestedPolicyVersion?any
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
ArgumentTypeDescription
policy?any
updateMask?any
fn test_iam_permissions(permissions?: any)
test iam permissions
ArgumentTypeDescription
permissions?any

Resources

state(infinite)— An API Configuration is a combination of settings for both the Managed Servic...
@swamp/gcp/apigateway/gatewaysv2026.10.23.1gateways.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.
apiConfig?stringRequired. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
displayName?stringOptional. Display name.
labels?recordOptional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
streamingMode?enumOptional. Immutable. Requests streaming for a new gateway. An attempt to change it on update is rejected. If unset, the service selects the mode. This field records only what was requested and is never modified by the service; read `effective_streaming_mode` for the mode the gateway is served with.
gatewayId?stringRequired. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a gateways
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a gateways
ArgumentTypeDescription
identifierstringThe name of the gateways
fn update(identifier?: string, waitForReady?: boolean)
Update gateways attributes
ArgumentTypeDescription
identifier?stringTarget a specific gateways by name (e.g. one discovered by list)
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn delete(identifier: string)
Delete the gateways
ArgumentTypeDescription
identifierstringThe name of the gateways
fn sync(identifier?: string)
Sync gateways state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific gateways by name (e.g. one discovered by list)
fn list(filter?: string, orderBy?: string, pageSize?: number, maxPages?: number)
List gateways resources
ArgumentTypeDescription
filter?stringFilter.
orderBy?stringOrder by parameters.
pageSize?numberPage size.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn get_iam_policy(options_requestedPolicyVersion?: any)
get iam policy
ArgumentTypeDescription
options_requestedPolicyVersion?any
fn set_iam_policy(policy?: any, updateMask?: any)
set iam policy
ArgumentTypeDescription
policy?any
updateMask?any
fn test_iam_permissions(permissions?: any)
test iam permissions
ArgumentTypeDescription
permissions?any

Resources

state(infinite)— A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-Consu...
@swamp/gcp/apigateway/locationsv2026.10.23.1locations.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.
namestringThe resource that owns the locations collection, if applicable.
fn get(identifier: string)
Get a locations
ArgumentTypeDescription
identifierstringThe name of the locations
fn sync(identifier?: string)
Sync locations state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific locations by name (e.g. one discovered by list)
fn list(extraLocationTypes?: string, filter?: string, pageSize?: number, maxPages?: number)
List locations resources
ArgumentTypeDescription
extraLocationTypes?stringOptional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
filter?stringA filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
pageSize?numberThe maximum number of results to return. If not set, the service selects a default.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— A resource that represents a Google Cloud location.
04Previous Versions19
2026.10.21.1AGPL-3.0-or-later(was none)
  • Updated: gateways
2026.10.13.1
  • Updated: locations, apis, apis_configs, gateways
2026.09.07.2
  • Updated: apis, apis_configs, gateways
2026.09.06.1
  • Updated: gateways
2026.08.12.2
  • Updated: locations, apis, apis_configs, gateways
2026.07.29.1
  • Updated: locations, apis, apis_configs, gateways
2026.07.21.4
  • Updated: locations, apis, apis_configs, gateways
2026.07.21.1
  • Updated: apis_configs
2026.07.20.2
  • Updated: locations
2026.07.20.1
  • Updated: locations, apis, apis_configs, gateways
2026.07.19.2
  • Updated: locations
2026.07.19.1
  • Updated: locations, apis, apis_configs, gateways
2026.07.18.2
  • Updated: locations, apis, apis_configs, gateways
2026.07.17.2
  • Updated: apis, apis_configs, gateways
2026.07.17.1
  • Updated: apis, apis_configs, gateways
2026.06.08.2
  • Updated: locations, apis, apis_configs, gateways
2026.06.07.1
  • Updated: locations, apis, apis_configs, gateways
2026.05.26.1
  • Updated: locations
2026.05.25.1
  • Updated: locations, apis, apis_configs, gateways

Modified 4 behaviors

05Stats
A
100 / 100
Downloads
35
Archive size
50.9 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