skipcheck

TM1 client · Docs · Versions and capabilities

Tm1Capability

from skipcheck_tm1 import Tm1Capability

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?
reserve = Tm1Capability.bound_operation("tm1.Cube", "tm1.Reserve").since("11.8.34")
return session.capabilities().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

kind
type
name
added_in
entity_set staticAn entity set, by its name, such as GitPlans.
singleton staticA singleton, by its name, such as ActiveSession.
bound_operation staticAn action or function bound to a type, or to one of its base types.
unbound_operation staticAn action or function import, invoked from the service root, by the import's name, 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.
added_in_versionThe schema version that added it, or None if not known.
describeHow it reads in messages, with aliases and namespaces dropped.

kind

kind: Tm1Capability.Kind

type

type: str | None

name

name: str

added_in

added_in: str | None

entity_set

static
entity_set(name: str) -> Tm1Capability

An entity set, by its name, such as GitPlans.

singleton

static
singleton(name: str) -> Tm1Capability

A singleton, by its name, such as ActiveSession.

bound_operation

static
bound_operation(binding_type: str, operation: str) -> Tm1Capability

An action or function bound to a type, or to one of its base types: the qualified type, such as tm1.Cube, and the qualified operation name, such as tm1.Reserve.

unbound_operation

static
unbound_operation(name: str) -> Tm1Capability

An action or function import, invoked from the service root, by the import's name, such as ExecuteMDX.

property

static
property(type: str, prop: str) -> Tm1Capability

A structural or navigation property of a type, or of one of its base types: the qualified type, such as tm1.Cube, and the property's name, such as Rules.

since

since(schema_version: str) -> Tm1Capability

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

added_in_version

added_in_version() -> str | None

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

describe

describe() -> str

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