Package coprs :: Package rest_api :: Module schemas :: Class ProjectSchema
[hide private]
[frames] | no frames]

Class ProjectSchema

source code


Nested Classes [hide private]

Inherited from marshmallow.schema.BaseSchema: Meta, OPTIONS_CLASS

Instance Methods [hide private]

Inherited from marshmallow.schema.BaseSchema: __init__, __repr__, dump, dumps, load, loads, make_object, validate

Inherited from marshmallow.schema.BaseSchema (private): _do_load, _invoke_dump_processors, _invoke_field_validators, _invoke_load_processors, _invoke_processors, _invoke_validators, _postprocess, _update_fields

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from marshmallow.schema.BaseSchema: accessor, data_handler, error_handler, preprocessor, validator

Class Variables [hide private]
  id = fields.Int(dump_only= True)
  name = fields.Str(dump_only= True)
  owner = fields.Str(attribute= "owner_name", dump_only= True)
  is_a_group_project = fields.Bool(dump_only= True)
  group = fields.Str(attribute= "group_name", dump_only= True)
  description = fields.Str(allow_none= True)
  instructions = fields.Str(allow_none= True)
  homepage = fields.Url(allow_none= True)
  contact = fields.Str(validate= validate_any([validate.URL(), v...
  disable_createrepo = fields.Bool(allow_none= True)
  build_enable_net = fields.Bool(allow_none= True)
  last_modified = fields.DateTime(dump_only= True)
  repos = SpaceSeparatedList(allow_none= True)
  _declared_fields = {'build_enable_net': <fields.Boolean(defaul...
  opts = <marshmallow.schema.SchemaOpts object at 0x7fee4821b950>

Inherited from marshmallow.schema.Schema: __processors__

Inherited from marshmallow.schema.BaseSchema: TYPE_MAPPING, __accessor__, __data_handlers__, __error_handler__, __preprocessors__, __validators__

Properties [hide private]

Inherited from marshmallow.schema.BaseSchema: dict_class, set_class

Inherited from object: __class__

Class Variable Details [hide private]

contact

Value:
fields.Str(validate= validate_any([validate.URL(), validate.Email(), v\
alidate.OneOf(["", None]),]), allow_none= True)

_declared_fields

Value:
{'build_enable_net': <fields.Boolean(default=<marshmallow.missing>, at\
tribute=None, error=None, validate=None, required=False, load_only=Fal\
se, dump_only=False, missing=<marshmallow.missing>, allow_none=True)>,
 'contact': <fields.String(default=<marshmallow.missing>, attribute=No\
ne, error=None, validate=<function func at 0x7fee4819d2a8>, required=F\
alse, load_only=False, dump_only=False, missing=<marshmallow.missing>,\
 allow_none=True)>,
 'description': <fields.String(default=<marshmallow.missing>, attribut\
...