# Path: fds/model/permission.py
# class Owner(dict):
#   '''
#   The owner definition class.
#   '''
# 
#   @staticmethod
#   def from_json(json):
#     if json != '':
#       owner = Owner()
#       if 'id' in json.keys():
#         owner.id = json['id']
#       if 'displayName' in json.keys():
#         owner.display_name = json['displayName']
#       return owner
#     return None
# 
#   @property
#   def id(self):
#     return self.id
# 
#   @id.setter
#   def id(self, id):
#     self['id'] = id
# 
#   @property
#   def display_name(self):
#     return self.display_name
# 
#   @display_name.setter
#   def display_name(self, display_name):
#     self['displayName'] = display_name


from .permission import Owner


class FDSBucket(object):
  """
  The FDS bucket class.
  """

  def __init__(self, bucket_name, owner=None):
    self.bucket_name = bucket_name
    self.owner = owner
    self.create_date = None

  def __str__(self):
    return self.bucket_name

  @property
  def owner(self):
    return self._owner

  @owner.setter
  def owner(self, json):
    if isinstance(json, dict):

# Path: fds/model/permission.py
# class Owner(dict):
#   '''
#   The owner definition class.
#   '''
# 
#   @staticmethod
#   def from_json(json):
#     if json != '':
#       owner = Owner()
#       if 'id' in json.keys():
#         owner.id = json['id']
#       if 'displayName' in json.keys():
#         owner.display_name = json['displayName']
#       return owner
#     return None
# 
#   @property
#   def id(self):
#     return self.id
# 
#   @id.setter
#   def id(self, id):
#     self['id'] = id
# 
#   @property
#   def display_name(self):
#     return self.display_name
# 
#   @display_name.setter
#   def display_name(self, display_name):
#     self['displayName'] = display_name


# Path: fds/model/fds_bucket.py
from .permission import Owner



class FDSBucket(object):
  """
  The FDS bucket class.
  """

  def __init__(self, bucket_name, owner=None):
    self.bucket_name = bucket_name
    self.owner = owner
    self.create_date = None

  def __str__(self):
    return self.bucket_name

  @property
  def owner(self):
    return self._owner

  @owner.setter
  def owner(self, json):
    if isinstance(json, dict):

      self._owner = Owner().from_json(json)