Zum Hauptinhalt springen

TenantTargetConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Common

Target-tenant setting of a data node that may reach another tenant of the pipeline's subtree. Without it (the default, null) a node works on its own tenant exactly as before.

public record TenantTargetConfiguration : IEquatable<TenantTargetConfiguration>

Inheritance Object → TenantTargetConfiguration
Implements IEquatable<TenantTargetConfiguration>

Remarks:

The relation is always static configuration, so data can never widen it; only the tenant id of a TenantRelation.Sibling or TenantRelation.Child target may come from the data context (TenantTargetConfiguration.TenantIdPath), and such an id is checked exactly like a configured one. Access additionally needs a right of the executing identity in the target tenant, proven by the identity service; the system identity is always refused.

Properties​

Relation​

Relation of the target to the pipeline's tenant. Must be named: the pipeline serializer does not enforce required, so a missing relation stays null and the guard refuses it as a configuration error instead of defaulting to TenantRelation.Parent.

public Nullable<TenantRelation> Relation { get; set; }

Property Value​

Nullable<TenantRelation>

TenantId​

Id of the target tenant (TenantRelation.Sibling and TenantRelation.Child). Not allowed for TenantRelation.Parent, and not together with TenantTargetConfiguration.TenantIdPath.

public string TenantId { get; set; }

Property Value​

String

TenantIdPath​

JSON path to the id of the target tenant in the data context, instead of TenantTargetConfiguration.TenantId. Only for a node that runs as a verified caller: with ServiceAccount, System, or Caller without a verified caller (it falls back to the service account) the access is refused at run time, and the communication controller refuses such a deploy for ServiceAccount and System.

public string TenantIdPath { get; set; }

Property Value​

String

Constructors​

TenantTargetConfiguration()​

Caution​

Constructors of types with required members are not supported in this version of your compiler.


public TenantTargetConfiguration()