Record Class Tm1Operation
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.Tm1Operation
- Record Components:
kind- whether it's an action or a functionname- the operation's name, qualified as in$metadata, such astm1.ActivatebindingType- the qualified type it's bound to, such astm1.Chore, ornullfor an operation invoked through an import from the service rootimportName- the import's name, such asExecuteMDX, for an unbound operation;nullfor a bound oneparameters- the parameters a caller passes, without the binding parameterreturnType- the return type as$metadatawrites it, such asCollection(tm1.Cube), ornullif it returns nothingaddedIn- the schema version that added it, ornullif not knowndeprecatedIn- the schema version that deprecated it, ornull
public record Tm1Operation(Tm1Operation.Kind kind, String name, @Nullable String bindingType, @Nullable String importName, List<Tm1Operation.Parameter> parameters, @Nullable String returnType, @Nullable String addedIn, @Nullable String deprecatedIn)
extends Record
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether an operation is an action or a function.static final recordA parameter. -
Constructor Summary
ConstructorsConstructorDescriptionTm1Operation(Tm1Operation.Kind kind, String name, @Nullable String bindingType, @Nullable String importName, List<Tm1Operation.Parameter> parameters, @Nullable String returnType, @Nullable String addedIn, @Nullable String deprecatedIn) Checks that a bound operation has no import name and an unbound one has one. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringaddedIn()Returns the value of theaddedInrecord component.@Nullable StringReturns the value of thebindingTyperecord component.booleanbound()Whether it's bound to a type, rather than invoked from the service root.What a request using it needs the server to have, with the version that added it, forTm1Request.requires.booleanWhether$metadatamarks it deprecated.@Nullable StringReturns the value of thedeprecatedInrecord component.endpoint()The endpoint as the coverage gate names it:Action Chore/Activate,Function Cube/DimensionsStorageOrder,ActionImport ExecuteMDX.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theimportNamerecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.Returns the value of theparametersrecord component.@Nullable StringReturns the value of thereturnTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tm1Operation
public Tm1Operation(Tm1Operation.Kind kind, String name, @Nullable String bindingType, @Nullable String importName, List<Tm1Operation.Parameter> parameters, @Nullable String returnType, @Nullable String addedIn, @Nullable String deprecatedIn) Checks that a bound operation has no import name and an unbound one has one.- Throws:
IllegalArgumentException- if it has both or neither
-
-
Method Details
-
bound
public boolean bound()Whether it's bound to a type, rather than invoked from the service root.- Returns:
- true if it's bound
-
deprecated
public boolean deprecated()Whether$metadatamarks it deprecated.- Returns:
- true if it's deprecated
-
endpoint
The endpoint as the coverage gate names it:Action Chore/Activate,Function Cube/DimensionsStorageOrder,ActionImport ExecuteMDX.- Returns:
- the endpoint's name
-
capability
What a request using it needs the server to have, with the version that added it, forTm1Request.requires.- Returns:
- the capability
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
kind
-
name
-
bindingType
Returns the value of thebindingTyperecord component.- Returns:
- the value of the
bindingTyperecord component
-
importName
Returns the value of theimportNamerecord component.- Returns:
- the value of the
importNamerecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
addedIn
-
deprecatedIn
Returns the value of thedeprecatedInrecord component.- Returns:
- the value of the
deprecatedInrecord component
-