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 static | A path starting at an entity set, singleton or operation import, such as Cubes. |
Metadata static | The service's metadata document, $metadata. |
Batch static | The service's batch endpoint, $batch. |
Link static | A path TM1 sent (an @odata.id, a Location), re-encoded segment by segment. |
FunctionImport static | A function import called from the service root, such as ModelCubes() or TailMessageLog(Top=10). |
Key | Cubes → Cubes('Sales'). |
Key | A compound key. |
Nav | Adds a navigation property or structural property segment, such as Views. |
Cast | Adds a type-cast segment, such as tm1.NativeView. |
Action | Adds a bound action segment, such as tm1.Reserve. |
Function | Adds a bound function call with literal parameters, such as tm1.GetPartition(Begin=0,End=99). |
Value | Adds $value. |
Count | Adds $count. |
Ref | Adds $ref. |
ToString | The path as it reads, before percent-encoding. |
Equals | |
Equals | |
GetHashCode |
Of
staticODataPath Of(string name)A path starting at an entity set, singleton or operation import, such as
Cubes.
Throws
ArgumentExceptionnameisn't an OData identifier.
Metadata
staticODataPath Metadata()The service's metadata document, $metadata: its CSDL XML. A path of its own,
since $metadata isn't an identifier Of accepts.
Batch
staticODataPath Batch()The service's batch endpoint, $batch: a path of its own, as
Metadata.
Link
staticODataPath Link(string link)A path TM1 sent (an @odata.id, a Location), re-encoded segment by segment.
FunctionImport
staticODataPath 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()