skipcheck

TM1 client · Docs · Queries

ODataPath

using Skipcheck.Tm1.Client.OData;

A resource path relative to the service root, built from segments and encoded as it's built:

var element = ODataPath.Of("Dimensions").Key("Region").Nav("Hierarchies").Key("Region").Nav("Elements").Key("O'Neil");
// Dimensions('Region')/Hierarchies('Region')/Elements('O''Neil')
var reserve = ODataPath.Of("Cubes").Key("Sales").Action("tm1.Reserve");
// Cubes('Sales')/tm1.Reserve

Names (entity sets, navigation properties, operations, type casts) must be OData identifiers, optionally qualified; they're checked, never encoded. Key values can be any text: they're written as string literals and percent-encoded. Paths are immutable.

Members

Of staticA path starting at an entity set, singleton or operation import, such as Cubes.
Metadata staticThe service's metadata document, $metadata.
Batch staticThe service's batch endpoint, $batch.
Link staticA path TM1 sent (an @odata.id, a Location), re-encoded segment by segment.
FunctionImport staticA function import called from the service root, such as ModelCubes() or TailMessageLog(Top=10).
KeyCubes → Cubes('Sales').
KeyA compound key.
NavAdds a navigation property or structural property segment, such as Views.
CastAdds a type-cast segment, such as tm1.NativeView.
ActionAdds a bound action segment, such as tm1.Reserve.
FunctionAdds a bound function call with literal parameters, such as tm1.GetPartition(Begin=0,End=99).
ValueAdds $value.
CountAdds $count.
RefAdds $ref.
ToStringThe path as it reads, before percent-encoding.
Equals
Equals
GetHashCode

Of

static
ODataPath Of(string name)

A path starting at an entity set, singleton or operation import, such as Cubes.

Throws

ArgumentException
name isn't an OData identifier.

Metadata

static
ODataPath Metadata()

The service's metadata document, $metadata: its CSDL XML. A path of its own, since $metadata isn't an identifier Of accepts.

Batch

static
ODataPath Batch()

The service's batch endpoint, $batch: a path of its own, as Metadata.

FunctionImport

static
ODataPath FunctionImport(string name, IReadOnlyDictionary<string, object?>? parameters = null)

A function import called from the service root, such as ModelCubes() or TailMessageLog(Top=10).

Parameters

name
The import's name, unqualified.

Key

ODataPath Key(object value)

Cubes → Cubes('Sales').

Key

ODataPath Key(IReadOnlyDictionary<string, object?> parts)

A compound key: Edges(ParentName='a',ComponentName='b').

Cast

ODataPath Cast(string qualifiedType)

Adds a type-cast segment, such as tm1.NativeView.

Action

ODataPath Action(string qualifiedName)

Adds a bound action segment, such as tm1.Reserve. Actions are invoked with POST.

Function

ODataPath Function(string qualifiedName, IReadOnlyDictionary<string, object?>? parameters = null)

Adds a bound function call with literal parameters, such as tm1.GetPartition(Begin=0,End=99). Use parameter aliases (ODataQuery.Alias) for complex or collection parameters.

Parameters

qualifiedName
The namespace-qualified function name.

Value

ODataPath Value()

Adds $value: a property's or media entity's raw value.

Count

ODataPath Count()

Adds $count: the number of items in a collection, as plain text.

Ref

ODataPath Ref()

Adds $ref: references to entities rather than the entities themselves.

ToString

string ToString()

The path as it reads, before percent-encoding.

Equals

bool Equals(ODataPath? other)

Equals

bool Equals(object? obj)

GetHashCode

int GetHashCode()