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 static | An entity set, by its name, such as GitPlans. |
singleton static | A singleton, by its name, such as ActiveSession. |
bound_operation static | An action or function bound to a type, or to one of its base types. |
unbound_operation static | An action or function import, invoked from the service root, by the import's name, such as ExecuteMDX. |
property static | A structural or navigation property of a type, or of one of its base types. |
since | A copy recording the schema version that added it. |
added_in_version | The schema version that added it, or None if not known. |
describe | How it reads in messages, with aliases and namespaces dropped. |
kind
kind: Tm1Capability.Kindtype
type: str | Nonename
name: stradded_in
added_in: str | Noneentity_set
staticentity_set(name: str) -> Tm1CapabilityAn entity set, by its name, such as GitPlans.
singleton
staticsingleton(name: str) -> Tm1CapabilityA singleton, by its name, such as ActiveSession.
bound_operation
staticbound_operation(binding_type: str, operation: str) -> Tm1CapabilityAn 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
staticunbound_operation(name: str) -> Tm1CapabilityAn action or function import, invoked from the service root, by the import's name, such as ExecuteMDX.
property
staticproperty(type: str, prop: str) -> Tm1CapabilityA 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) -> Tm1CapabilityA 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 | NoneThe schema version that added it, or None if not known.
describe
describe() -> strHow it reads in messages, with aliases and namespaces dropped: Cube.Reserve, entity set GitPlans.