skipcheck

TM1 client · Docs · The client

Tm1Operation

using Skipcheck.Tm1.Client;

An action or function of the TM1 REST API, as $metadata declares it. The generated Tm1Operations catalog has one per operation; services refer to them, so a request can check that the server has the operation (Capability) and the coverage gate can tell which operations the client implements.

Members

Tm1Operation constructorAn operation.
Kind propertyWhether it's an action or a function.
Name propertyIts name in a path.
BindingType propertyThe qualified type it's bound to, such as tm1.Chore, or null for an operation invoked through an import from the service root.
ImportName propertyThe import's name, such as ExecuteMDX, for an unbound operation; null for a bound one.
Parameters propertyThe parameters a caller passes, without the binding parameter.
ReturnType propertyThe return type as $metadata writes it, such as Collection(tm1.Cube), or null if it returns nothing.
AddedIn propertyThe schema version that added it, or null if not known.
DeprecatedIn propertyThe schema version that deprecated it, or null.
BoundWhether it's bound to a type, rather than invoked from the service root.
DeprecatedWhether $metadata marks it deprecated.
EndpointIts coverage-gate ID.
CapabilityWhat a request using it needs the server to have, with the version that added it, for Tm1Request{T}.Requires.

Tm1Operation

constructor
Tm1Operation( OperationKind kind, string name, string? bindingType, string? importName, IReadOnlyList<Parameter> parameters, string? returnType, string? addedIn, string? deprecatedIn )

An operation.

Parameters

kind
Whether it's an action or a function.
name
Its name, qualified as in $metadata, such as tm1.Activate.
bindingType
The qualified type it's bound to, such as tm1.Chore, or null for an operation invoked through an import from the service root.
importName
The import's name, such as ExecuteMDX, for an unbound operation; null for a bound one.
parameters
The parameters a caller passes, without the binding parameter.
returnType
The return type as $metadata writes it, such as Collection(tm1.Cube), or null if it returns nothing.
addedIn
The schema version that added it, or null if not known.
deprecatedIn
The schema version that deprecated it, or null.

Throws

ArgumentException
It has both a binding type and an import name, or neither.

Kind

property
OperationKind Kind

Whether it's an action or a function.

Name

property
string Name

Its name in a path: tm1.Activate.

BindingType

property
string? BindingType

The qualified type it's bound to, such as tm1.Chore, or null for an operation invoked through an import from the service root.

ImportName

property
string? ImportName

The import's name, such as ExecuteMDX, for an unbound operation; null for a bound one.

Parameters

property
IReadOnlyList<Parameter> Parameters

The parameters a caller passes, without the binding parameter.

ReturnType

property
string? ReturnType

The return type as $metadata writes it, such as Collection(tm1.Cube), or null if it returns nothing.

AddedIn

property
string? AddedIn

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

DeprecatedIn

property
string? DeprecatedIn

The schema version that deprecated it, or null.

Bound

bool Bound()

Whether it's bound to a type, rather than invoked from the service root.

Deprecated

bool Deprecated()

Whether $metadata marks it deprecated.

Endpoint

string Endpoint()

Its coverage-gate ID: Action Chore/Activate, ActionImport ExecuteMDX.

Capability

Tm1Capability Capability()

What a request using it needs the server to have, with the version that added it, for Tm1Request{T}.Requires.