class Qdrant::Api::ProgressTree

Included Modules

Defined in:

qdrant-api/models/progress_tree.cr

Constructors

Instance Method Summary

Macros inherited from module Qdrant::Api::Validation

validates(name, klass, nilable, **rules) validates

Instance methods inherited from module Qdrant::Api::Serializable

eql?(other) eql?, to_body : Hash(String, JSON::Any) to_body, to_h : Hash(String, JSON::Any) to_h, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String, started_at : Time | Nil = nil, finished_at : Time | Nil = nil, duration_sec : Float64 | Nil = nil, done : Int32 | Nil = nil, total : Int32 | Nil = nil, children : Array(ProgressTree) | Nil = nil) #

Initializes the object @param [Hash] attributes Model attributes in the form of hash


[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def children : Array(ProgressTree) | Nil #

Child operations.


[View source]
def children=(children : Array(ProgressTree) | Nil) #

Child operations.


[View source]
def done : Int32 | Nil #

Number of completed units of work, if applicable.


[View source]
def done=(value : Int32 | Nil) #

Number of completed units of work, if applicable.


[View source]
def done_validation_error(value) : String | Nil #

[View source]
def duration_sec : Float64 | Nil #

For finished operations, how long they took, in seconds.


[View source]
def duration_sec=(duration_sec : Float64 | Nil) #

For finished operations, how long they took, in seconds.


[View source]
def finished_at : Time | Nil #

When the operation finished.


[View source]
def finished_at=(finished_at : Time | Nil) #

When the operation finished.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def list_invalid_properties #

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons


[View source]
def name : String #

Required properties Name of the operation.


[View source]
def name=(name : String) #

Required properties Name of the operation.


[View source]
def started_at : Time | Nil #

Optional properties When the operation started.


[View source]
def started_at=(started_at : Time | Nil) #

Optional properties When the operation started.


[View source]
def total : Int32 | Nil #

Total number of units of work, if applicable and known.


[View source]
def total=(value : Int32 | Nil) #

Total number of units of work, if applicable and known.


[View source]
def total_validation_error(value) : String | Nil #

[View source]
def valid? #

Check to see if the all the properties in the model are valid @return true if the model is valid


[View source]