class
Qdrant::Api::SnapshotRecover
- Qdrant::Api::SnapshotRecover
- Reference
- Object
Included Modules
- JSON::Serializable
- Qdrant::Api::Serializable
- Qdrant::Api::Validation
- YAML::Serializable
Defined in:
qdrant-api/models/snapshot_recover.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
-
.new(location : String, priority : SnapshotPriority | Nil = nil, checksum : String | Nil = nil, api_key : String | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#api_key : String | Nil
Optional API key used when fetching the snapshot from a remote URL.
-
#api_key=(api_key : String | Nil)
Optional API key used when fetching the snapshot from a remote URL.
-
#checksum : String | Nil
Optional SHA256 checksum to verify snapshot integrity before recovery.
-
#checksum=(checksum : String | Nil)
Optional SHA256 checksum to verify snapshot integrity before recovery.
-
#hash(hasher)
See
Object#hash(hasher) -
#list_invalid_properties
Show invalid properties with the reasons.
-
#location : String
Required properties Examples: - URL
http://localhost:8080/collections/my_collection/snapshots/my_snapshot- Local pathfile:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot -
#location=(location : String)
Required properties Examples: - URL
http://localhost:8080/collections/my_collection/snapshots/my_snapshot- Local pathfile:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot -
#priority : SnapshotPriority | Nil
Optional properties Defines which data should be used as a source of truth if there are other replicas in the cluster.
-
#priority=(priority : SnapshotPriority | Nil)
Optional properties Defines which data should be used as a source of truth if there are other replicas in the cluster.
-
#valid?
Check to see if the all the properties in the model are valid @return true if the model is valid
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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Optional API key used when fetching the snapshot from a remote URL.
Optional SHA256 checksum to verify snapshot integrity before recovery.
Optional SHA256 checksum to verify snapshot integrity before recovery.
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Required properties
Examples: - URL http://localhost:8080/collections/my_collection/snapshots/my_snapshot - Local path file:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot
Required properties
Examples: - URL http://localhost:8080/collections/my_collection/snapshots/my_snapshot - Local path file:///qdrant/snapshots/test_collection-2022-08-04-10-49-10.snapshot
Optional properties
Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to Snapshot, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to Replica, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.
Optional properties
Defines which data should be used as a source of truth if there are other replicas in the cluster. If set to Snapshot, the snapshot will be used as a source of truth, and the current state will be overwritten. If set to Replica, the current state will be used as a source of truth, and after recovery if will be synchronized with the snapshot.
Check to see if the all the properties in the model are valid @return true if the model is valid