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 constructor | A capability. |
Kind property | What kind of element this is. |
Type property | The qualified type it belongs to (a bound operation's binding type, a property's structured type), or null. |
Name property | The element's name. |
AddedIn property | The schema version that added it, or null if not known. |
EntitySet static | An entity set, such as GitPlans. |
Singleton static | A singleton, such as ActiveSession. |
BoundOperation static | An action or function bound to a type, or to one of its base types. |
UnboundOperation static | An action or function import, invoked from the service root, 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, from Core.Revisions, such as 11.8.34. |
AddedInVersion | The schema version that added it, or null if not known. |
Describe | How it reads in messages, with aliases and namespaces dropped. |
Tm1Capability
constructorTm1Capability(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
propertyCapabilityKind KindWhat kind of element this is.
Type
propertystring? TypeThe qualified type it belongs to (a bound operation's binding type, a property's structured type), or null.
Name
propertystring NameThe element's name.
AddedIn
propertystring? AddedInThe schema version that added it, or null if not known.
EntitySet
staticTm1Capability EntitySet(string name)An entity set, such as GitPlans.
Singleton
staticTm1Capability Singleton(string name)A singleton, such as ActiveSession.
BoundOperation
staticTm1Capability 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
staticTm1Capability UnboundOperation(string name)An action or function import, invoked from the service root, such as
ExecuteMDX.
Property
staticTm1Capability 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.