Module mydata_did.v1_0.models.data_controller_model
Expand source code
from aries_cloudagent.messaging.models.base import BaseModel, BaseModelSchema
from marshmallow import fields, EXCLUDE
class DataController(BaseModel):
"""
Data controller model class
"""
class Meta:
schema_class = "DataControllerSchema"
def __init__(self,
*,
organisation_did: str = None,
organisation_name: str = None,
cover_image_url: str = None,
logo_image_url: str = None,
location: str = None,
organisation_type: str = None,
description: str = None,
policy_url: str = None,
eula_url: str = None,
**kwargs):
super().__init__(**kwargs)
self.organisation_did = organisation_did
self.organisation_name = organisation_name
self.cover_image_url = cover_image_url
self.logo_image_url = logo_image_url
self.location = location
self.organisation_type = organisation_type
self.description = description
self.policy_url = policy_url
self.eula_url = eula_url
class DataControllerSchema(BaseModelSchema):
"""
Data controller schema class
"""
class Meta:
model_class = DataController
unknown = EXCLUDE
organisation_did = fields.Str()
organisation_name = fields.Str()
cover_image_url = fields.Str()
logo_image_url = fields.Str()
location = fields.Str()
organisation_type = fields.Str()
description = fields.Str()
policy_url = fields.Str()
eula_url = fields.Str()
Classes
class DataController (*, organisation_did: str = None, organisation_name: str = None, cover_image_url: str = None, logo_image_url: str = None, location: str = None, organisation_type: str = None, description: str = None, policy_url: str = None, eula_url: str = None, **kwargs)
-
Data controller model class
Initialize BaseModel.
Raises
TypeError
- If schema_class is not set on Meta
Expand source code
class DataController(BaseModel): """ Data controller model class """ class Meta: schema_class = "DataControllerSchema" def __init__(self, *, organisation_did: str = None, organisation_name: str = None, cover_image_url: str = None, logo_image_url: str = None, location: str = None, organisation_type: str = None, description: str = None, policy_url: str = None, eula_url: str = None, **kwargs): super().__init__(**kwargs) self.organisation_did = organisation_did self.organisation_name = organisation_name self.cover_image_url = cover_image_url self.logo_image_url = logo_image_url self.location = location self.organisation_type = organisation_type self.description = description self.policy_url = policy_url self.eula_url = eula_url
Ancestors
- aries_cloudagent.messaging.models.base.BaseModel
- abc.ABC
Class variables
var Meta
class DataControllerSchema (*args, **kwargs)
-
Data controller schema class
Initialize BaseModelSchema.
Raises
TypeError
- If model_class is not set on Meta
Expand source code
class DataControllerSchema(BaseModelSchema): """ Data controller schema class """ class Meta: model_class = DataController unknown = EXCLUDE organisation_did = fields.Str() organisation_name = fields.Str() cover_image_url = fields.Str() logo_image_url = fields.Str() location = fields.Str() organisation_type = fields.Str() description = fields.Str() policy_url = fields.Str() eula_url = fields.Str()
Ancestors
- aries_cloudagent.messaging.models.base.BaseModelSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
var Meta
var opts