Skip to main content

@swamp/gcp/servicedirectory

v2026.04.23.1

Google Cloud servicedirectory infrastructure models

Repository

https://github.com/systeminit/swamp-extensions

Labels

gcpgoogle-cloudservicedirectorycloudinfrastructure

Contents

Quality score

Verified by Swamp

How well-documented and verifiable this extension is.

100%

Grade A

  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned

Install

$ swamp extension pull @swamp/gcp/servicedirectory

@swamp/gcp/servicedirectory/locationsv2026.04.23.1locations.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
getGet a locations
ArgumentTypeDescription
identifierstringThe name of the locations
syncSync locations state from GCP

Resources

state(infinite)— A resource that represents a Google Cloud location.
@swamp/gcp/servicedirectory/namespacesv2026.04.23.1namespaces.ts

Global Arguments

ArgumentTypeDescription
labels?recordOptional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
name?stringImmutable. The resource name for the namespace in the format `projects/*/locations/*/namespaces/*`.
namespaceId?stringRequired. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a namespaces
getGet a namespaces
ArgumentTypeDescription
identifierstringThe name of the namespaces
updateUpdate namespaces attributes
deleteDelete the namespaces
ArgumentTypeDescription
identifierstringThe name of the namespaces
syncSync namespaces state from GCP

Resources

state(infinite)— A container for services. Namespaces allow administrators to group services t...
@swamp/gcp/servicedirectory/namespaces-servicesv2026.04.23.1namespaces_services.ts

Global Arguments

ArgumentTypeDescription
annotations?recordOptional. Annotations for the service. This data can be consumed by service clients. Restrictions: * The entire annotations dictionary may contain up to 2000 characters, spread accoss all key-value pairs. Annotations that go beyond this limit are rejected * Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-),
name?stringImmutable. The resource name for the service in the format `projects/*/locations/*/namespaces/*/services/*`.
serviceId?stringRequired. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a services
getGet a services
ArgumentTypeDescription
identifierstringThe name of the services
updateUpdate services attributes
deleteDelete the services
ArgumentTypeDescription
identifierstringThe name of the services
syncSync services state from GCP
resolveresolve
ArgumentTypeDescription
endpointFilter?any
maxEndpoints?any

Resources

state(infinite)— An individual service. A service contains a name and optional metadata. A ser...
@swamp/gcp/servicedirectory/namespaces-services-endpointsv2026.04.23.1namespaces_services_endpoints.ts

Global Arguments

ArgumentTypeDescription
address?stringOptional. An IPv4 or IPv6 address. Service Directory rejects bad addresses like: * `8.8.8` * `8.8.8.8:53` * `test:bad:address` * `[::1]` * `[::1]:8080` Limited to 45 characters.
annotations?recordOptional. Annotations for the endpoint. This data can be consumed by service clients. Restrictions: * The entire annotations dictionary may contain up to 512 characters, spread accoss all key-value pairs. Annotations that go beyond this limit are rejected * Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/). The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-),
name?stringImmutable. The resource name for the endpoint in the format `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
network?stringImmutable. The Google Compute Engine network (VPC) of the endpoint in the format `projects//locations/global/networks/*`. The project must be specified by project number (project id is rejected). Incorrectly formatted networks are rejected, we also check to make sure that you have the servicedirectory.networks.attach permission on the project specified.
port?numberOptional. Service Directory rejects values outside of `[0, 65535]`.
endpointId?stringRequired. The Resource ID must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a endpoints
getGet a endpoints
ArgumentTypeDescription
identifierstringThe name of the endpoints
updateUpdate endpoints attributes
deleteDelete the endpoints
ArgumentTypeDescription
identifierstringThe name of the endpoints
syncSync endpoints state from GCP

Resources

state(infinite)— An individual endpoint that provides a service. The service must already exis...