Module mydata_did.v1_0.models.data_agreement_qr_code_initiate_model
Expand source code
from marshmallow import fields
from aries_cloudagent.messaging.models.base import BaseModel, BaseModelSchema
from aries_cloudagent.messaging.valid import UUIDFour
class DataAgreementQrCodeInitiateBody(BaseModel):
"""Data Agreement Qr code initiate body"""
class Meta:
"""Data Agreement Qr code initiate Body metadata"""
schema_class = "DataAgreementQrCodeInitiateBodySchema"
def __init__(
self,
*,
qr_id: str = None,
**kwargs
):
"""Data Agreement Qr Code Initiate Body init"""
super().__init__(**kwargs)
# Set attributes
self.qr_id = qr_id
class DataAgreementQrCodeInitiateBodySchema(BaseModelSchema):
"""Data Agreement Qr Code Initiate Body schema"""
class Meta:
"""Data Agreement Qr Code Initiate Body schema metadata"""
model_class = DataAgreementQrCodeInitiateBody
# Data agreement id
qr_id = fields.Str(
example=UUIDFour.EXAMPLE,
description="Qr code identifier"
)
Classes
class DataAgreementQrCodeInitiateBody (*, qr_id: str = None, **kwargs)
-
Data Agreement Qr code initiate body
Data Agreement Qr Code Initiate Body init
Expand source code
class DataAgreementQrCodeInitiateBody(BaseModel): """Data Agreement Qr code initiate body""" class Meta: """Data Agreement Qr code initiate Body metadata""" schema_class = "DataAgreementQrCodeInitiateBodySchema" def __init__( self, *, qr_id: str = None, **kwargs ): """Data Agreement Qr Code Initiate Body init""" super().__init__(**kwargs) # Set attributes self.qr_id = qr_id
Ancestors
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
-
Data Agreement Qr code initiate Body metadata
class DataAgreementQrCodeInitiateBodySchema (*args, **kwargs)
-
Data Agreement Qr Code Initiate Body schema
Initialize BaseModelSchema.
Raises
TypeError
- If model_class is not set on Meta
Expand source code
class DataAgreementQrCodeInitiateBodySchema(BaseModelSchema): """Data Agreement Qr Code Initiate Body schema""" class Meta: """Data Agreement Qr Code Initiate Body schema metadata""" model_class = DataAgreementQrCodeInitiateBody # Data agreement id qr_id = fields.Str( example=UUIDFour.EXAMPLE, description="Qr code identifier" )
Ancestors
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
-
Data Agreement Qr Code Initiate Body schema metadata
var opts