Record Class Tm1Operation

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.Tm1Operation
Record Components:
kind - whether it's an action or a function
name - the operation's 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

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.
  • Constructor Details

  • 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 $metadata marks it deprecated.
      Returns:
      true if it's deprecated
    • endpoint

      public String endpoint()
      The endpoint as the coverage gate names it: Action Chore/Activate, Function Cube/DimensionsStorageOrder, ActionImport ExecuteMDX.
      Returns:
      the endpoint's name
    • capability

      public Tm1Capability capability()
      What a request using it needs the server to have, with the version that added it, for Tm1Request.requires.
      Returns:
      the capability
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • kind

      public Tm1Operation.Kind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • bindingType

      public @Nullable String bindingType()
      Returns the value of the bindingType record component.
      Returns:
      the value of the bindingType record component
    • importName

      public @Nullable String importName()
      Returns the value of the importName record component.
      Returns:
      the value of the importName record component
    • parameters

      public List<Tm1Operation.Parameter> parameters()
      Returns the value of the parameters record component.
      Returns:
      the value of the parameters record component
    • returnType

      public @Nullable String returnType()
      Returns the value of the returnType record component.
      Returns:
      the value of the returnType record component
    • addedIn

      public @Nullable String addedIn()
      Returns the value of the addedIn record component.
      Returns:
      the value of the addedIn record component
    • deprecatedIn

      public @Nullable String deprecatedIn()
      Returns the value of the deprecatedIn record component.
      Returns:
      the value of the deprecatedIn record component