# Path: fds/galaxy_fds_client_exception.py
# class GalaxyFDSClientException(Error):
#   def __init__(self, message):
#     self.message = message
# 
#   def __str__(self):
#     if self.message:
#       return super.__str__(self) + ": " + str(self.message)
#     return super.__str__(self)


from ..galaxy_fds_client_exception import GalaxyFDSClientException


class AccessControlPolicy(dict):
  '''
  The access control policy class.
  '''

  def __init__(self, json):
    '''
    Construct access control policy object from json.
    '''
    if json is not None:
      if 'owner' in json.keys():
        self.owner = json['owner']
      else:
        self.owner = None
      if 'accessControlList' in json.keys():
        self.access_control_list = json['accessControlList']
      else:
        self.access_control_list = None
    else:

# Path: fds/galaxy_fds_client_exception.py
# class GalaxyFDSClientException(Error):
#   def __init__(self, message):
#     self.message = message
# 
#   def __str__(self):
#     if self.message:
#       return super.__str__(self) + ": " + str(self.message)
#     return super.__str__(self)


# Path: fds/model/access_control_policy.py
from ..galaxy_fds_client_exception import GalaxyFDSClientException



class AccessControlPolicy(dict):
  '''
  The access control policy class.
  '''

  def __init__(self, json):
    '''
    Construct access control policy object from json.
    '''
    if json is not None:
      if 'owner' in json.keys():
        self.owner = json['owner']
      else:
        self.owner = None
      if 'accessControlList' in json.keys():
        self.access_control_list = json['accessControlList']
      else:
        self.access_control_list = None
    else:

      raise GalaxyFDSClientException("Json data cannot be None")