Module mydata_did.v1_0.models.read_data_agreement_response_model
Expand source code
import datetime
from aries_cloudagent.messaging.models.base import BaseModel, BaseModelSchema
from aries_cloudagent.messaging.valid import UUIDFour
from marshmallow import fields, EXCLUDE
from marshmallow.exceptions import ValidationError
from typing import List
from ..utils.regex import MYDATA_DID
from .data_agreement_instance_model import DataAgreementInstanceSchema, DataAgreementInstance
class ReadDataAgreementResponseBody(BaseModel):
"""ReadDataAgreementResponseBody model class"""
class Meta:
"""ReadDataAgreementResponseBody metadata"""
schema_class = "ReadDataAgreementResponseBodySchema"
def __init__(
self,
*,
data_agreement :DataAgreementInstance = None,
**kwargs,
):
"""
Initialize ReadDataAgreementResponseBody model
:param data_agreement: Data Agreement
:param kwargs: kwargs
"""
super().__init__(**kwargs)
self.data_agreement = data_agreement
class ReadDataAgreementResponseBodySchema(BaseModelSchema):
"""ReadDataAgreementResponseBody schema class"""
class Meta:
"""ReadDataAgreementResponseBodySchema metadata"""
model_class = ReadDataAgreementResponseBody
unknown = EXCLUDE
data_agreement = fields.Nested(DataAgreementInstanceSchema())
Classes
class ReadDataAgreementResponseBody (*, data_agreement: DataAgreementInstance = None, **kwargs)
-
ReadDataAgreementResponseBody model class
Initialize ReadDataAgreementResponseBody model
:param data_agreement: Data Agreement :param kwargs: kwargs
Expand source code
class ReadDataAgreementResponseBody(BaseModel): """ReadDataAgreementResponseBody model class""" class Meta: """ReadDataAgreementResponseBody metadata""" schema_class = "ReadDataAgreementResponseBodySchema" def __init__( self, *, data_agreement :DataAgreementInstance = None, **kwargs, ): """ Initialize ReadDataAgreementResponseBody model :param data_agreement: Data Agreement :param kwargs: kwargs """ super().__init__(**kwargs) self.data_agreement = data_agreement
Ancestors
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
-
ReadDataAgreementResponseBody metadata
class ReadDataAgreementResponseBodySchema (*args, **kwargs)
-
ReadDataAgreementResponseBody schema class
Initialize BaseModelSchema.
Raises
TypeError
- If model_class is not set on Meta
Expand source code
class ReadDataAgreementResponseBodySchema(BaseModelSchema): """ReadDataAgreementResponseBody schema class""" class Meta: """ReadDataAgreementResponseBodySchema metadata""" model_class = ReadDataAgreementResponseBody unknown = EXCLUDE data_agreement = fields.Nested(DataAgreementInstanceSchema())
Ancestors
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
-
ReadDataAgreementResponseBodySchema metadata
var opts