Module mydata_did.patched_protocols.issue_credential.v1_0.messages.credential_ack
A credential ack message.
Expand source code
"""A credential ack message."""
from marshmallow import EXCLUDE
from aries_cloudagent.messaging.ack.message import Ack, AckSchema
from aries_cloudagent.messaging.decorators.base import BaseDecoratorSet
from ..message_types import CREDENTIAL_ACK, PROTOCOL_PACKAGE
from .....v1_0.decorators.patched_decorator_set import PatchedDecoratorSet
HANDLER_CLASS = (
f"{PROTOCOL_PACKAGE}.handlers.credential_ack_handler.CredentialAckHandler"
)
class CredentialAck(Ack):
"""Class representing a credential ack message."""
class Meta:
"""Credential metadata."""
handler_class = HANDLER_CLASS
schema_class = "CredentialAckSchema"
message_type = CREDENTIAL_ACK
def __init__(self, **kwargs):
"""Initialize credential object."""
super().__init__(_decorators=PatchedDecoratorSet(), **kwargs)
class CredentialAckSchema(AckSchema):
"""Credential ack schema."""
class Meta:
"""Schema metadata."""
model_class = CredentialAck
unknown = EXCLUDE
Classes
class CredentialAck (**kwargs)
-
Class representing a credential ack message.
Initialize credential object.
Expand source code
class CredentialAck(Ack): """Class representing a credential ack message.""" class Meta: """Credential metadata.""" handler_class = HANDLER_CLASS schema_class = "CredentialAckSchema" message_type = CREDENTIAL_ACK def __init__(self, **kwargs): """Initialize credential object.""" super().__init__(_decorators=PatchedDecoratorSet(), **kwargs)
Ancestors
- aries_cloudagent.messaging.ack.message.Ack
- aries_cloudagent.messaging.agent_message.AgentMessage
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
-
Credential metadata.
class CredentialAckSchema (*args, **kwargs)
-
Credential ack schema.
Initialize an instance of AgentMessageSchema.
Raises
TypeError
- If Meta.model_class has not been set
Expand source code
class CredentialAckSchema(AckSchema): """Credential ack schema.""" class Meta: """Schema metadata.""" model_class = CredentialAck unknown = EXCLUDE
Ancestors
- aries_cloudagent.messaging.ack.message.AckSchema
- aries_cloudagent.messaging.agent_message.AgentMessageSchema
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
-
Schema metadata.
var opts