Table of Contents

Class PortalSharingItem

Namespace
Honua.Sdk.GeoServices.Portal.Models
Assembly
Honua.Sdk.GeoServices.dll

Sharing entry returned by /sharing/rest/search or /sharing/rest/content/items/{id}.

public sealed class PortalSharingItem
Inheritance
PortalSharingItem
Inherited Members

Properties

Access

Projected RBAC access level (public, org, or private).

[JsonPropertyName("access")]
public string Access { get; init; }

Property Value

string

AdditionalProperties

Unmodeled JSON properties preserved from the server response.

[JsonExtensionData]
[SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "System.Text.Json source generation requires a setter for JsonExtensionData.")]
public Dictionary<string, JsonElement>? AdditionalProperties { get; set; }

Property Value

Dictionary<string, JsonElement>

Created

Creation timestamp in Unix milliseconds.

[JsonPropertyName("created")]
public long Created { get; init; }

Property Value

long

Culture

Culture or language tag.

[JsonPropertyName("culture")]
public string? Culture { get; init; }

Property Value

string

Description

Long-form description.

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

Property Value

string

Extent

Bounding extent as [[xmin, ymin], [xmax, ymax]], or empty when unavailable.

[JsonPropertyName("extent")]
public IReadOnlyList<IReadOnlyList<double>> Extent { get; init; }

Property Value

IReadOnlyList<IReadOnlyList<double>>

GroupCategories

Optional group category assignments.

[JsonPropertyName("groupCategories")]
public IReadOnlyList<string>? GroupCategories { get; init; }

Property Value

IReadOnlyList<string>

Id

Stable identifier for this sharing entry.

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

Modified

Last-modified timestamp in Unix milliseconds.

[JsonPropertyName("modified")]
public long Modified { get; init; }

Property Value

long

NumComments

Reported comment count.

[JsonPropertyName("numComments")]
public int NumComments { get; init; }

Property Value

int

NumViews

Reported view count.

[JsonPropertyName("numViews")]
public int NumViews { get; init; }

Property Value

int

Owner

Owner username.

[JsonPropertyName("owner")]
public string Owner { get; init; }

Property Value

string

Snippet

Short summary snippet.

[JsonPropertyName("snippet")]
public string? Snippet { get; init; }

Property Value

string

SpatialReference

Spatial reference WKID or WKT reported for the extent.

[JsonPropertyName("spatialReference")]
[JsonConverter(typeof(PortalSpatialReferenceConverter))]
public string? SpatialReference { get; init; }

Property Value

string

Tags

Discovery tags.

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

Property Value

IReadOnlyList<string>

Title

Human-readable title.

[JsonPropertyName("title")]
public string Title { get; init; }

Property Value

string

Type

Service type string such as Feature Service, Map Service, or Image Service.

[JsonPropertyName("type")]
public string Type { get; init; }

Property Value

string

TypeKeywords

Type keywords describing advertised capabilities.

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

Property Value

IReadOnlyList<string>

Url

Target service URL such as .../rest/services/{name}/FeatureServer.

[JsonPropertyName("url")]
[SuppressMessage("Design", "CA1056:URI-like properties should not be strings", Justification = "Mirrors the /sharing/rest JSON wire contract, which carries URLs verbatim as strings.")]
public string? Url { get; init; }

Property Value

string