@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 SwampHow well-documented and verifiable this extension is.
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
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
getGet a locations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| labels? | record | Optional. 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? | string | Immutable. The resource name for the namespace in the format `projects/*/locations/*/namespaces/*`. |
| namespaceId? | string | Required. 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? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a namespaces
getGet a namespaces
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the namespaces |
updateUpdate namespaces attributes
deleteDelete the namespaces
| Argument | Type | Description |
|---|---|---|
| identifier | string | The 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
| Argument | Type | Description |
|---|---|---|
| annotations? | record | Optional. 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? | string | Immutable. The resource name for the service in the format `projects/*/locations/*/namespaces/*/services/*`. |
| serviceId? | string | Required. 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? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a services
getGet a services
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the services |
updateUpdate services attributes
deleteDelete the services
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the services |
syncSync services state from GCP
resolveresolve
| Argument | Type | Description |
|---|---|---|
| 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
| Argument | Type | Description |
|---|---|---|
| address? | string | Optional. 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? | record | Optional. 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? | string | Immutable. The resource name for the endpoint in the format `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. |
| network? | string | Immutable. 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? | number | Optional. Service Directory rejects values outside of `[0, 65535]`. |
| endpointId? | string | Required. 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? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a endpoints
getGet a endpoints
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the endpoints |
updateUpdate endpoints attributes
deleteDelete the endpoints
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the endpoints |
syncSync endpoints state from GCP
Resources
state(infinite)— An individual endpoint that provides a service. The service must already exis...
2026.04.03.319.8 KBApr 3, 2026
Google Cloud servicedirectory infrastructure models
Release Notes
- Updated: locations, namespaces, namespaces_services, namespaces_services_endpoints
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudservicedirectorycloudinfrastructure
2026.04.03.119.5 KBApr 3, 2026
Google Cloud servicedirectory infrastructure models
Release Notes
- Updated: locations, namespaces, namespaces_services, namespaces_services_endpoints
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudservicedirectorycloudinfrastructure
2026.04.02.219.6 KBApr 2, 2026
Google Cloud servicedirectory infrastructure models
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudservicedirectorycloudinfrastructure
2026.03.27.118.0 KBMar 27, 2026
Google Cloud servicedirectory infrastructure models
Release Notes
- Added: locations, namespaces, namespaces_services, namespaces_services_endpoints
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudservicedirectorycloudinfrastructure