Class PublishLayerRequest
Request payload for publishing a PostGIS table as a layer.
public sealed record PublishLayerRequest : IEquatable<PublishLayerRequest>
- Inheritance
-
PublishLayerRequest
- Implements
- Inherited Members
Properties
Capabilities
Optional capabilities, such as Query, Create, Update and Delete. Omitted to preserve server defaults; an empty list is sent as supplied.
[JsonPropertyName("capabilities")]
public IReadOnlyList<string>? Capabilities { get; init; }
Property Value
Description
Optional layer description.
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Enabled
Whether to enable the layer after publishing.
[JsonPropertyName("enabled")]
public bool Enabled { get; init; }
Property Value
Fields
Selected attribute fields to publish (empty means include all).
[JsonPropertyName("fields")]
public IReadOnlyList<string> Fields { get; init; }
Property Value
FolderId
The destination Folder; default preserves membership, explicit null selects Root.
[JsonPropertyName("folderId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public OptionalString FolderId { get; init; }
Property Value
GeometryColumn
Geometry column name.
[JsonPropertyName("geometryColumn")]
public string? GeometryColumn { get; init; }
Property Value
GeometryType
Geometry type (Point, Polygon, etc).
[JsonPropertyName("geometryType")]
public string? GeometryType { get; init; }
Property Value
LayerName
Display name for the layer.
[JsonPropertyName("layerName")]
public required string LayerName { get; init; }
Property Value
Namespace
The namespace selector; null leaves publishing unscoped.
[JsonPropertyName("namespace")]
public string? Namespace { get; init; }
Property Value
PrimaryKey
Primary key field name.
[JsonPropertyName("primaryKey")]
public string? PrimaryKey { get; init; }
Property Value
PublicName
The immutable public Service name when supplied.
[JsonPropertyName("publicName")]
public string? PublicName { get; init; }
Property Value
Schema
Schema containing the source table.
[JsonPropertyName("schema")]
public required string Schema { get; init; }
Property Value
ServiceName
Optional service name (defaults to "default").
[JsonPropertyName("serviceName")]
public string? ServiceName { get; init; }
Property Value
Srid
Spatial reference identifier.
[JsonPropertyName("srid")]
public int? Srid { get; init; }
Property Value
- int?
StorageMode
Optional storage mode (source or managed). Omitted to preserve server defaults; edit capabilities require managed storage.
[JsonPropertyName("storageMode")]
public string? StorageMode { get; init; }
Property Value
Table
Source table name.
[JsonPropertyName("table")]
public required string Table { get; init; }