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 constructor | An operation. |
Kind property | Whether it's an action or a function. |
Name property | Its name in a path. |
BindingType property | 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 | The import's name, such as ExecuteMDX, for an unbound operation; null for a bound one. |
Parameters property | The parameters a caller passes, without the binding parameter. |
ReturnType property | The return type as $metadata writes it, such as Collection(tm1.Cube), or null if it returns nothing. |
AddedIn property | The schema version that added it, or null if not known. |
DeprecatedIn property | The schema version that deprecated it, or null. |
Bound | Whether it's bound to a type, rather than invoked from the service root. |
Deprecated | Whether $metadata marks it deprecated. |
Endpoint | Its coverage-gate ID. |
Capability | What a request using it needs the server to have, with the version that added it, for Tm1Request{T}.Requires. |
Tm1Operation
constructorTm1Operation( 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 astm1.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
$metadatawrites it, such asCollection(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
propertyOperationKind KindWhether it's an action or a function.
Name
propertystring NameIts name in a path: tm1.Activate.
BindingType
propertystring? BindingTypeThe qualified type it's bound to, such as tm1.Chore, or null for an
operation invoked through an import from the service root.
ImportName
propertystring? ImportNameThe import's name, such as ExecuteMDX, for an unbound operation; null for a
bound one.
Parameters
propertyIReadOnlyList<Parameter> ParametersThe parameters a caller passes, without the binding parameter.
ReturnType
propertystring? ReturnTypeThe return type as $metadata writes it, such as Collection(tm1.Cube),
or null if it returns nothing.
AddedIn
propertystring? AddedInThe schema version that added it, or null if not known.
DeprecatedIn
propertystring? DeprecatedInThe 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.