#!/usr/bin/python
# Copyright 2011 Google Inc. All Rights Reserved.
#
# AUTO-GENERATED BY parse-schema.py
#
# DO NOT EDIT!!
#
#pylint: disable-msg=C6202
#pylint: disable-msg=C6409
#pylint: disable-msg=C6310
# These should not actually be necessary (bugs in gpylint?):
#pylint: disable-msg=E1101
#pylint: disable-msg=W0231
#
"""Auto-generated from spec: urn:catawampus-org:x-catawampus-storage-1-0."""

import core
from tr140_v1_2 import StorageService_v1_2


class X_CATAWAMPUS_ORG_Storage_v1_0(StorageService_v1_2):
  """Represents X_CATAWAMPUS_ORG_Storage_v1_0."""

  def __init__(self, **defaults):
    StorageService_v1_2.__init__(self, defaults=defaults)
    self.Export(lists=['StorageService'])

  class StorageService(StorageService_v1_2.StorageService):
    """Represents X_CATAWAMPUS_ORG_Storage_v1_0.StorageService.{i}."""

    def __init__(self, **defaults):
      StorageService_v1_2.StorageService.__init__(self, defaults=defaults)
      self.Export(params=['X_CATAWAMPUS-ORG_FlashMediaNumberOfEntries'],
                  lists=['LogicalVolume',
                         'X_CATAWAMPUS-ORG_FlashMedia'])

    class LogicalVolume(StorageService_v1_2.StorageService.LogicalVolume):
      """Represents X_CATAWAMPUS_ORG_Storage_v1_0.StorageService.{i}.LogicalVolume.{i}."""

      def __init__(self, **defaults):
        StorageService_v1_2.StorageService.LogicalVolume.__init__(self, defaults=defaults)
        self.Export(params=['X_CATAWAMPUS-ORG_ReadOnly'])

    class X_CATAWAMPUS_ORG_FlashMedia(core.Exporter):
      """Represents X_CATAWAMPUS_ORG_Storage_v1_0.StorageService.{i}.X_CATAWAMPUS-ORG_FlashMedia.{i}."""

      def __init__(self, **defaults):
        core.Exporter.__init__(self, defaults=defaults)
        self.Export(params=['BadEraseBlocks',
                            'CorrectedErrors',
                            'EraseBlockSize',
                            'IOSize',
                            'MaxEraseCount',
                            'Name',
                            'ReservedEraseBlocks',
                            'SubVolumeNumberOfEntries',
                            'TotalEraseBlocks',
                            'UncorrectedErrors'],
                    lists=['SubVolume'])

      class SubVolume(core.Exporter):
        """Represents X_CATAWAMPUS_ORG_Storage_v1_0.StorageService.{i}.X_CATAWAMPUS-ORG_FlashMedia.{i}.SubVolume.{i}."""

        def __init__(self, **defaults):
          core.Exporter.__init__(self, defaults=defaults)
          self.Export(params=['DataMBytes',
                              'Name',
                              'Status'])


if __name__ == '__main__':
  print core.DumpSchema(X_CATAWAMPUS_ORG_Storage_v1_0)
