skipcheck

TM1 client · Docs · Versions and capabilities

Tm1Capability

using Skipcheck.Tm1.Client.Version;

Something a request needs the server to define in its $metadata: an entity set, a singleton, an operation or a property. A request can declare one, and the session checks it against the connected server before sending anything.

// Does the server's $metadata define the cube's tm1.Reserve action?
var reserve = Tm1Capability.BoundOperation("tm1.Cube", "tm1.Reserve").Since("11.8.34");
return (await session.CapabilitiesAsync()).Supports(reserve);

Names are qualified by namespace or alias (tm1.Cube or ibm.tm1.api.v1.Cube), as in $metadata. Since records the schema version that added it, from Core.Revisions, so a server that lacks it can be told why; the generated model fills it in.

Members

Tm1Capability constructorA capability.
Kind propertyWhat kind of element this is.
Type propertyThe qualified type it belongs to (a bound operation's binding type, a property's structured type), or null.
Name propertyThe element's name.
AddedIn propertyThe schema version that added it, or null if not known.
EntitySet staticAn entity set, such as GitPlans.
Singleton staticA singleton, such as ActiveSession.
BoundOperation staticAn action or function bound to a type, or to one of its base types.
UnboundOperation staticAn action or function import, invoked from the service root, such as ExecuteMDX.
Property staticA structural or navigation property of a type, or of one of its base types.
SinceA copy recording the schema version that added it, from Core.Revisions, such as 11.8.34.
AddedInVersionThe schema version that added it, or null if not known.
DescribeHow it reads in messages, with aliases and namespaces dropped.

Tm1Capability

constructor
Tm1Capability(CapabilityKind kind, string? type, string name, string? addedIn)

A capability.

Parameters

kind
What kind of element this is.
type
The qualified type it belongs to (a bound operation's binding type, a property's structured type), or null.
name
The element's name.
addedIn
The schema version that added it, or null if not known.

Kind

property
CapabilityKind Kind

What kind of element this is.

Type

property
string? Type

The qualified type it belongs to (a bound operation's binding type, a property's structured type), or null.

Name

property
string Name

The element's name.

AddedIn

property
string? AddedIn

The schema version that added it, or null if not known.

EntitySet

static
Tm1Capability EntitySet(string name)

An entity set, such as GitPlans.

Singleton

static
Tm1Capability Singleton(string name)

A singleton, such as ActiveSession.

BoundOperation

static
Tm1Capability BoundOperation(string bindingType, string operation)

An action or function bound to a type, or to one of its base types.

Parameters

bindingType
The qualified type, such as tm1.Cube.
operation
The qualified operation name, such as tm1.Reserve.

UnboundOperation

static
Tm1Capability UnboundOperation(string name)

An action or function import, invoked from the service root, such as ExecuteMDX.

Property

static
Tm1Capability Property(string type, string property)

A structural or navigation property of a type, or of one of its base types.

Parameters

type
The qualified type, such as tm1.Cube.
property
The property's name, such as Rules.

Since

Tm1Capability Since(string schemaVersion)

A copy recording the schema version that added it, from Core.Revisions, such as 11.8.34.

AddedInVersion

string? AddedInVersion()

The schema version that added it, or null if not known.

Describe

string Describe()

How it reads in messages, with aliases and namespaces dropped: Cube.Reserve, entity set GitPlans.