Module mydata_did.v1_0.models.existing_connections_model
Expand source code
from marshmallow import fields
from aries_cloudagent.messaging.models.base import BaseModel, BaseModelSchema
class ExistingConnectionsBody(BaseModel):
"""Existing connections message body"""
class Meta:
"""Existing connection message body metadata"""
schema_class = "ExistingConnectionsBodySchema"
def __init__(
self,
*,
theirdid: str = None,
**kwargs
):
"""ExistingConnectionsBody init"""
super().__init__(**kwargs)
# Set attributes
self.theirdid = theirdid
class ExistingConnectionsBodySchema(BaseModelSchema):
"""Existing connections message body schema"""
class Meta:
"""ExistingConnectionsBodySchema metadata"""
model_class = ExistingConnectionsBody
# Pairwise DID of the existing connection.
theirdid = fields.Str()
Classes
class ExistingConnectionsBody (*, theirdid: str = None, **kwargs)
-
Existing connections message body
ExistingConnectionsBody init
Expand source code
class ExistingConnectionsBody(BaseModel): """Existing connections message body""" class Meta: """Existing connection message body metadata""" schema_class = "ExistingConnectionsBodySchema" def __init__( self, *, theirdid: str = None, **kwargs ): """ExistingConnectionsBody init""" super().__init__(**kwargs) # Set attributes self.theirdid = theirdid
Ancestors
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
-
Existing connection message body metadata
class ExistingConnectionsBodySchema (*args, **kwargs)
-
Existing connections message body schema
Initialize BaseModelSchema.
Raises
TypeError
- If model_class is not set on Meta
Expand source code
class ExistingConnectionsBodySchema(BaseModelSchema): """Existing connections message body schema""" class Meta: """ExistingConnectionsBodySchema metadata""" model_class = ExistingConnectionsBody # Pairwise DID of the existing connection. theirdid = fields.Str()
Ancestors
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
-
ExistingConnectionsBodySchema metadata
var opts