Table of Contents

Class PublishLayerRequest

Namespace
Honua.Sdk.Admin.Models
Assembly
Honua.Sdk.Admin.dll

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

IReadOnlyList<string>

Description

Optional layer description.

[JsonPropertyName("description")]
public string? Description { get; init; }

Property Value

string

Enabled

Whether to enable the layer after publishing.

[JsonPropertyName("enabled")]
public bool Enabled { get; init; }

Property Value

bool

Fields

Selected attribute fields to publish (empty means include all).

[JsonPropertyName("fields")]
public IReadOnlyList<string> Fields { get; init; }

Property Value

IReadOnlyList<string>

FolderId

The destination Folder; default preserves membership, explicit null selects Root.

[JsonPropertyName("folderId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public OptionalString FolderId { get; init; }

Property Value

OptionalString

GeometryColumn

Geometry column name.

[JsonPropertyName("geometryColumn")]
public string? GeometryColumn { get; init; }

Property Value

string

GeometryType

Geometry type (Point, Polygon, etc).

[JsonPropertyName("geometryType")]
public string? GeometryType { get; init; }

Property Value

string

LayerName

Display name for the layer.

[JsonPropertyName("layerName")]
public required string LayerName { get; init; }

Property Value

string

Namespace

The namespace selector; null leaves publishing unscoped.

[JsonPropertyName("namespace")]
public string? Namespace { get; init; }

Property Value

string

PrimaryKey

Primary key field name.

[JsonPropertyName("primaryKey")]
public string? PrimaryKey { get; init; }

Property Value

string

PublicName

The immutable public Service name when supplied.

[JsonPropertyName("publicName")]
public string? PublicName { get; init; }

Property Value

string

Schema

Schema containing the source table.

[JsonPropertyName("schema")]
public required string Schema { get; init; }

Property Value

string

ServiceName

Optional service name (defaults to "default").

[JsonPropertyName("serviceName")]
public string? ServiceName { get; init; }

Property Value

string

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

string

Table

Source table name.

[JsonPropertyName("table")]
public required string Table { get; init; }

Property Value

string