aries_cloudagent.protocols.discovery.v1_0.models package
Package-wide code and data.
Submodules
aries_cloudagent.protocols.discovery.v1_0.models.discovery_record module
.
- class aries_cloudagent.protocols.discovery.v1_0.models.discovery_record.V10DiscoveryExchangeRecord(*, state: Optional[str] = None, discovery_exchange_id: Optional[str] = None, connection_id: Optional[str] = None, thread_id: Optional[str] = None, query_msg: Optional[Union[Mapping, Query]] = None, disclose: Optional[Union[Mapping, Disclose]] = None, **kwargs)[source]
Bases:
BaseExchangeRecord
Represents a Discover Feature (0031) exchange record.
- class Meta[source]
Bases:
object
V10DiscoveryExchangeRecord metadata.
- schema_class = 'V10DiscoveryRecordSchema'
- RECORD_ID_NAME = 'discovery_exchange_id'
- RECORD_TYPE = 'discovery_exchange_v10'
- STATE_DISCLOSE_RECV = 'disclose-received'
- STATE_QUERY_SENT = 'query-sent'
- TAG_NAMES = {'connection_id', 'thread_id'}
- async classmethod exists_for_connection_id(session: ProfileSession, connection_id: str) bool [source]
Return whether a discovery exchange record exists for the given connection.
- async classmethod retrieve_by_connection_id(session: ProfileSession, connection_id: str) V10DiscoveryExchangeRecord [source]
Retrieve a discovery exchange record by connection.
- async classmethod retrieve_if_exists_by_connection_id(session: ProfileSession, connection_id: str) Optional[V10DiscoveryExchangeRecord] [source]
Retrieve a discovery exchange record by connection.
- class aries_cloudagent.protocols.discovery.v1_0.models.discovery_record.V10DiscoveryRecordSchema(*args: Any, **kwargs: Any)[source]
Bases:
BaseExchangeSchema
Schema to allow ser/deser of Discover Feature (0031) records.
- class Meta[source]
Bases:
object
V10DiscoveryRecordSchema metadata.
- model_class
alias of
V10DiscoveryExchangeRecord