class IFujitsuRemoteAccessCntlrInfo(IComponentInfo):
    """
    Info adapter for FujitsuRemoteAccessCntlr components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    slot = schema.Int(title=u"Slot", readonly=True, group='Details')
    FWRev = schema.Text(title=u"Firmware Revision",
                        readonly=True,
                        group='Details')
    SWVer = schema.Text(title=u"Drivers Pack Version",
                        readonly=True,
                        group='Details')
    ipaddress = schema.Text(title=u"IP Address",
                            readonly=True,
                            group='Network Settings')
    subnetmask = schema.Text(title=u"Subnet Mask",
                             readonly=True,
                             group='Network Settings')
    macaddress = schema.Text(title=u"MAC Address",
                             readonly=True,
                             group='Network Settings')
class IRabbitMQExchangeInfo(IComponentInfo):
    rabbitmq_node = schema.Entity(title=_t(u"Node"))
    rabbitmq_vhost = schema.Entity(title=_t(u"VHost"))
    exchange_type = SingleLineText(title=_t(u"Type"))
    durable = schema.Bool(title=_t("Durable"))
    auto_delete = schema.Bool(title=_t("Auto-Delete"))
    arguments = SingleLineText(title=_t(u"Arguments"))
class IHPEVAConsistencySetInfo(IComponentInfo):
    """
    Info adapter for HPEVA DR Group components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    participationType = schema.Text(title=u"Role",
                                    readonly=True,
                                    group='Details')
    writeMode = schema.Text(title=u"Write Mode",
                            readonly=True,
                            group='Details')
    storagePool = schema.Entity(title=u"Log Disk Group",
                                readonly=True,
                                group='Details')
    logDiskReservedCapacity = schema.Entity(
        title=u"Log Disk Reserved Capacity", readonly=True, group='Details')
    currentPercentLogLevel = schema.Text(title=u"Log Usage",
                                         readonly=True,
                                         group='Details')
    remoteCellName = schema.Text(title=u"Remote System",
                                 readonly=True,
                                 group='Details')
    hostAccessMode = schema.Text(title=u"Host Access Mode",
                                 readonly=True,
                                 group='Details')
    failSafe = schema.Text(title=u"Failsafe", readonly=True, group='Details')
    suspendMode = schema.Text(title=u"Suspend Mode",
                              readonly=True,
                              group='Details')
class IPIFInfo(IPooledComponentInfo):
    '''
    API Info interface for PIF.
    '''

    host = schema.Entity(title=_t(u'Host'))
    network = schema.Entity(title=_t(u'Network'))
    server_interface = schema.Entity(title=_t(u'Server Interface'))

    dns = schema.TextLine(title=_t(u'DNS Server Address'))
    ipv4_addresses = schema.TextLine(title=_t(u'IPv4 Addresses'))
    ipv6_addresses = schema.TextLine(title=_t(u'IPv6 Addresses'))
    macaddress = schema.TextLine(title=_t(u'MAC Address'))
    mtu = schema.TextLine(title=_t(u'MTU'))
    vlan = schema.TextLine(title=_t(u'VLAN'))
    carrier = schema.Bool(title=_t(u'Carrier'))
    currently_attached = schema.Bool(title=_t(u'Currently Attached'))
    pif_device = schema.TextLine(title=_t(u'Network Device'))
    pif_device_id = schema.TextLine(title=_t(u'Network Device ID'))
    pif_device_name = schema.TextLine(title=_t(u'Network Device Name'))
    disallow_unplug = schema.Bool(title=_t(u'Disallow Unplug'))
    ipv4_gateway = schema.TextLine(title=_t(u'IPv4 Gateway'))
    ipv4_configuration_mode = schema.TextLine(
        title=_t(u'IPv4 Configuration Mode'))
    ipv6_configuration_mode = schema.TextLine(
        title=_t(u'IPv6 Configuration Mode'))
    ipv6_gateway = schema.TextLine(title=_t(u'IPv6 Gateway'))
    management = schema.Bool(title=_t(u'Management'))
    ipv4_netmask = schema.TextLine(title=_t(u'IPv4 Netmask'))
    physical = schema.Bool(title=_t(u'Physical'))
    primary_address_type = schema.TextLine(title=_t(u'Primary Address Type'))
    speed = schema.Int(title=_t(u'Speed'))
    vendor_name = schema.TextLine(title=_t(u'Vendor Name'))
class IcpqSm2CntlrInfo(IComponentInfo):
    """
    Info adapter for cpqSm2Cntlr components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    serialNumber = schema.Text(title=u"Serial #",
                               readonly=True,
                               group='Details')
    slot = schema.Int(title=u"Slot", readonly=True, group='Details')
    romRev = schema.Text(title=u"ROM Version", readonly=True, group='Details')
    hwVer = schema.Text(title=u"Hardware Version",
                        readonly=True,
                        group='Details')
    systemId = schema.Text(title=u"System ID", readonly=True, group='Details')
    macaddress = schema.Text(title=u"MAC Address",
                             readonly=True,
                             group='Network Settings')
    ipaddress = schema.Text(title=u"IP Address",
                            readonly=True,
                            group='Network Settings')
    subnetmask = schema.Text(title=u"Subnet Mask",
                             readonly=True,
                             group='Network Settings')
    dnsName = schema.Text(title=u"DNS Name",
                          readonly=True,
                          group='Network Settings')
class IVMInfo(IPooledComponentInfo):
    '''
    API Info interface for VM.
    '''

    host = schema.Entity(title=_t(u'Host'))
    vmappliance = schema.Entity(title=_t(u'vApp'))
    guest_device = schema.Entity(title=_t(u'Guest Device'))

    hvm_shadow_multiplier = schema.Float(title=_t(u'HVM Shadow Multiplier'))
    vcpus_at_startup = schema.Int(title=_t(u'vCPUs at Startup'))
    vcpus_max = schema.Int(title=_t(u'Maximum vCPUs'))
    actions_after_crash = schema.TextLine(title=_t(u'Actions After Crash'))
    actions_after_reboot = schema.TextLine(title=_t(u'Actions After Reboot'))
    actions_after_shutdown = schema.TextLine(title=_t(u'Actions After Shutdown'))
    allowed_operations = schema.TextLine(title=_t(u'Allowed Operations'))
    domarch = schema.TextLine(title=_t(u'Domain Architecture'))
    domid = schema.Int(title=_t(u'Domain ID'))
    ha_always_run = schema.Bool(title=_t(u'HA Always Run'))
    ha_restart_priority = schema.TextLine(title=_t(u'HA Restart Priority'))
    is_a_snapshot = schema.Bool(title=_t(u'Is a Snapshot'))
    is_a_template = schema.Bool(title=_t(u'Is a Template'))
    is_control_domain = schema.Bool(title=_t(u'Is a Control Domain'))
    is_snapshot_from_vmpp = schema.Bool(title=_t(u'Is a Snapshot from VMPP'))
    memory_actual = schema.Int(title=_t(u'Actual Memory'))
    name_description = schema.TextLine(title=_t(u'Description'))
    name_label = schema.TextLine(title=_t(u'Label'))
    power_state = schema.TextLine(title=_t(u'Power State'))
    shutdown_delay = schema.Int(title=_t(u'Shutdown Delay'))
    start_delay = schema.Int(title=_t(u'Start Delay'))
    user_version = schema.Int(title=_t(u'User Version'))
    version = schema.Int(title=_t(u'Version'))

    vbd_count = schema.Int(title=_t(u'Number of Virtual Block Devices'))
    vif_count = schema.Int(title=_t(u'Number of Virtual Network Interfaces'))
class IHostInfo(IPooledComponentInfo):
    '''
    API Info interface for Host.
    '''

    api_version_major = schema.TextLine(title=_t(u'API Version Major'))
    api_version_minor = schema.TextLine(title=_t(u'API Version Minor'))
    api_version_vendor = schema.TextLine(title=_t(u'API Version Vendor'))
    address = schema.TextLine(title=_t(u'Address'))
    allowed_operations = schema.TextLine(title=_t(u'Allowed Operations'))
    capabilities = schema.TextLine(title=_t(u'Capabilities'))
    cpu_count = schema.Int(title=_t(u'CPU Count'))
    cpu_speed = schema.Float(title=_t(u'CPU Speed'))
    edition = schema.TextLine(title=_t(u'Edition'))
    enabled = schema.TextLine(title=_t(u'Enabled'))
    hostname = schema.TextLine(title=_t(u'Hostname'))
    is_pool_master = schema.Bool(title=_t(u'Is Pool Master'))
    name_description = schema.TextLine(title=_t(u'Description'))
    name_label = schema.TextLine(title=_t(u'Label'))
    sched_policy = schema.TextLine(title=_t(u'Scheduling Policy'))
    memory_total = schema.Int(title=_t(u'Total Memory'))

    master_for = schema.Entity(title=_t(u'Master for Pool'))
    suspend_image_sr = schema.Entity(
        title=_t(u'Suspend Image Storage Repository'))
    crash_dump_sr = schema.Entity(title=_t(u'Crash Dump Storage Repository'))
    local_cache_sr = schema.Entity(title=_t(u'Local Cache Storage Repository'))
    server_device = schema.Entity(title=_t(u'Server Device'))

    hostcpu_count = schema.Int(title=_t(u'Number of Host CPUs'))
    pbd_count = schema.Int(title=_t(u'Number of Block Devices'))
    pif_count = schema.Int(title=_t(u'Number of Network Interfaces'))
    vm_count = schema.Int(title=_t(u'Number of VMs'))
Exemple #8
0
class IHWComponentInfo(IComponentInfo):
    """Info interface for ZPL HWComponent.

    This exists because Zuul has no HWComponent info interface.
    """

    manufacturer = schema.Entity(title=u'Manufacturer')
    product = schema.Entity(title=u'Model')
Exemple #9
0
class IExpansionCardInfo(IComponentInfo):
    """
    Info adapter for ExpansionCard components.
    """
    slot = schema.TextLine(title=_t(u'Slot'), group='Overview', readonly=True)
    serialNumber = schema.TextLine(title=_t(u'Serial Number'), readonly=True)
    product = schema.Entity(title=_t(u'Model'), readonly=True)
    manufacturer = schema.Entity(title=_t(u'Manufacturer'), readonly=True)
class IHPEVAStorageDiskEnclosureInfo(IComponentInfo):
    """
    Info adapter for HPEVA Storage Disk Enclosure components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
class IRabbitMQQueueInfo(IComponentInfo):
    rabbitmq_node = schema.Entity(title=_t(u"Node"))
    rabbitmq_vhost = schema.Entity(title=_t(u"VHost"))
    durable = schema.Bool(title=_t("Durable"))
    auto_delete = schema.Bool(title=_t("Auto-Delete"))
    arguments = SingleLineText(title=_t(u"Arguments"))

    threshold_messages_max = schema.Int(
        title=_t(u"Threshold - Messages (Maximum)"), alwaysEditable=True)
Exemple #12
0
class IEC2AccountInfo(IDeviceInfo):
    '''
    API Info interface for EC2Account.
    '''

    ec2accesskey = schema.TextLine(title=_t(u'EC2 Access Key'))
    ec2secretkey = schema.TextLine(title=_t(u'EC2 Secret Key'))
    linuxDeviceClass = schema.Entity(title=_t(u'Linux Device Class'))
    windowsDeviceClass = schema.Entity(title=_t(u'Windows Device Class'))
Exemple #13
0
class IClusterInfo(IBaseComponentInfo):
    """Interface for Cluster API (Info) adapter."""

    cluster_type = SingleLineText(title=_t(u"Cluster Type"))
    hypervisor_type = SingleLineText(title=_t(u"Hypervisor Type"))
    managed_state = SingleLineText(title=_t(u"Managed State"))
    zone = schema.Entity(title=_t(u"Zone"))
    pod = schema.Entity(title=_t(u"Pod"))
    host_count = schema.Int(title=_t(u"Host Count"))
class IDBSrvInstInfo(IComponentInfo):
    """
    Info adapter for DB Server Instance components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    contact = schema.Text(title=u"Contact", readonly=True, group='Details')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
class IEC2InstanceInfo(IComponentInfo):
    """
    Info adapter for C2Instance components.
    """
    instance_id = schema.TextLine(title=u"Instance ID", readonly=True)
    device = schema.Entity(title=u"Device", readonly=True)
    dns_name = schema.TextLine(title=u"DNS Name", readonly=True)
    placement = schema.TextLine(title=u"Placement", readonly=True)
    instance_type = schema.Entity(title=u"Instance Type", readonly=True)
    state = schema.TextLine(title=u"state", readonly=True)
Exemple #16
0
class IMemoryModuleInfo(IComponentInfo):
    """
    Info adapter for MemoryModule components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    size = schema.Text(title=u"Size", readonly=True, group='Details')
class IServerInfo(IComponentInfo):
    serverStatus = schema.Text(title=_t(u"Server Status"))
    publicIps = schema.List(title=_t(u"Public IPs"))
    privateIps = schema.List(title=_t(u"Private IPs"))
    flavor = schema.Entity(title=_t(u"Server Flavor"))
    image = schema.Entity(title=_t(u"Server Image"))
    serverBackupEnabled = schema.Bool(title=_t(u"Server Backup Enabled"))
    serverBackupDaily = schema.Text(title=_t(u"Server Backup Daily"))
    serverBackupWeekly = schema.Text(title=_t(u"Server Backup Weekly"))
    hostId = schema.Text(title=_t(u"Host ID"))
    guestDevice = schema.Entity(title=_t(u"Guest Device"))
class IEC2ZoneInfo(IComponentInfo):
    '''
    API Info interface for EC2Zone.
    '''

    state = schema.TextLine(title=_t(u'State'))
    account = schema.Entity(title=_t(u'Account'))
    region = schema.Entity(title=_t(u'Region'))
    instance_count = schema.Int(title=_t(u'Number of Instances'))
    volume_count = schema.Int(title=_t(u'Number of Volumes'))
    vpc_subnet_count = schema.Int(title=_t(u'Number of VPC Subnets'))
Exemple #19
0
class ICPUInfo(IComponentInfo):
    """
    Info adapter for CPU components.
    """
    socket = schema.Int(title=_t(u"Socket"), readonly=True)
    clockspeed = schema.Int(title=_t(u"Clock Speed"), readonly=True)
    extspeed = schema.Int(title=_t(u"Ext Speed"), readonly=True)
    voltage = schema.Int(title=_t(u"Voltage"), readonly=True)
    cacheSizeL1 = schema.Int(title=_t(u"L1"), readonly=True)
    cacheSizeL2 = schema.Int(title=_t(u"L2"), readonly=True)
    product = schema.Entity(title=_t(u"Model"), readonly=True)
    manufacturer = schema.Entity(title=_t(u"Manufacturer"), readonly=True)
Exemple #20
0
class IEC2VPCInfo(IComponentInfo):
    '''
    API Info interface for EC2VPC.
    '''

    state = schema.TextLine(title=_t(u'State'))
    account = schema.Entity(title=_t(u'Account'))
    region = schema.Entity(title=_t(u'Region'))
    cidr_block = schema.TextLine(title=_t(u'CIDR Block'))
    collector = schema.TextLine(title=_t(u'Collector'))
    vpc_subnet_count = schema.Int(title=_t('Number of VPC Subnets'))
    instance_count = schema.Int(title=_t(u'Number of Instances'))
Exemple #21
0
class IExpansionCardInfo(IComponentInfo):
    """
    Info adapter for ExpansionCard components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    serialNumber = schema.Text(title=u"Serial #",
                               readonly=True,
                               group='Details')
    slot = schema.Int(title=u"Slot", readonly=True, group='Details')
class IPBDInfo(IPooledComponentInfo):
    '''
    API Info interface for PBD.
    '''

    host = schema.Entity(title=_t(u'Host'))
    sr = schema.Entity(title=_t(u'Storage Repository'))
    server_disk = schema.Entity(title=_t(u'Server Disk'))

    currently_attached = schema.Bool(title=_t(u'Currently Attached'))
    dc_device = schema.TextLine(title=_t(u'Device Name'))
    dc_legacy_mode = schema.Bool(title=_t(u'Legacy Mode'))
    dc_location = schema.TextLine(title=_t(u'Location'))
Exemple #23
0
class IHBaseHRegionInfo(IComponentInfo):
    '''
    API Info interface for HBaseHRegion.
    '''

    device = schema.Entity(title=_t(u'Device'))
    server = schema.Entity(title=_t(u'Region Server'))
    table = schema.TextLine(title=_t(u'Table'))
    start_key = schema.TextLine(title=_t(u'Start Key'))
    region_id = schema.TextLine(title=_t(u'Region ID'))
    region_hash = schema.TextLine(title=_t(u'Hash'))
    memstore_flush_size = schema.TextLine(title=_t(u'Memstore Flush Size'))
    max_file_size = schema.TextLine(title=_t(u'Max File Size'))
class IcpqIdeControllerInfo(IComponentInfo):
    """
    Info adapter for cpqIdeController components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    serialNumber = schema.Text(title=u"Serial #",
                               readonly=True,
                               group='Details')
    slot = schema.Int(title=u"Slot", readonly=True, group='Details')
    FWRev = schema.Text(title=u"Firmware", readonly=True, group='Details')
class ICiscoExpansionCardInfo(IComponentInfo):
    """
    Info adapter for CiscoExpansionCard components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer", readonly=True,
                                                            group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    serialNumber = schema.Text(title=u"Serial #", readonly=True, group='Details')
    partNumber = schema.Text(title=u"Part #", readonly=True, group='Details')
    slot = schema.Int(title=u"Slot", readonly=True, group='Details')
    HWVer = schema.Int(title=u"HW Version", readonly=True, group='Details')
    SWVer = schema.Int(title=u"SW Version", readonly=True, group='Details')
    FWRev = schema.Int(title=u"Firmware", readonly=True, group='Details')
Exemple #26
0
class IMySQLDatabaseInfo(IComponentInfo):
    '''
    API Info interface for MySQLDatabase.
    '''

    device = schema.Entity(title=_t(u'Device'))
    server = schema.Entity(title=_t(u'Server'))
    # size = schema.TextLine(title=_t(u'Size'))
    # data_size = schema.TextLine(title=_t(u'Data size'))
    # index_size = schema.TextLine(title=_t(u'Index size'))
    default_character_set_name = \
        schema.TextLine(title=_t(u'Default character set'))
    default_collation_name = schema.TextLine(title=_t(u'Default collation'))
    table_count = schema.Int(title=_t(u'Number of tables'))
class IAppInfo(IComponentInfo):
    cfName = schema.Text(title=_t(u"Name"))
    cfVersion = schema.Text(title=_t(u"Version"))
    cfState = schema.Text(title=_t("State"))
    cfMetaCreated = schema.Int(title=_t("Created"))
    cfMetaVersion = schema.Text(title=_t("Version"))
    cfURIs = schema.List(title=_t("URIs"))
    cfServices = schema.List(title=_t("Services"))
    cfStagingModel = schema.Text(title=_t(u"Model"))
    cfStagingStack = schema.Text(title=_t(u"Stack"))
    instances = schema.Text(title=_t("Instances"))
    resourcesMemory = schema.Int(title=_t("Resources: Memory"))
    resourcesDisk = schema.Int(title=_t("Resources: Disk"))
    cfFramework = schema.Entity(title=_t("Framework"))
    cfRuntime = schema.Entity(title=_t("Runtime"))
class IFileSystemInfo(IBaseFileSystemInfo):
    """IInfo interface for FileSystem.

    This is used for JSON API definition. Fields described here are what will
    appear on instance's component details panel.

    """

    logicalVolume = schema.Entity(title=_t(u"LVM Logical Volume"),
                                  group="Details",
                                  readonly=True)

    blockDevice = schema.Entity(title=_t(u"Block Device"),
                                group="Details",
                                readonly=True)
Exemple #29
0
class IIpRouteEntryInfo(IComponentInfo):
    """
    Info adapter for IpRouteEntry components.
    """
    destination = schema.Entity(title=u'Destination',
                                readonly=True,
                                group="Overview")
    nextHop = schema.Entity(title=u"Next Hop", readonly=True, group="Overview")
    interface = schema.Entity(title=u"Interface",
                              readonly=True,
                              group="Overview")
    protocol = schema.TextLine(title=u"Protocol",
                               readonly=True,
                               group="Overview")
    type = schema.TextLine(title=u"Type", readonly=True, group="Overview")
class IHPEVAStorageProcessorCardInfo(IComponentInfo):
    """
    Info adapter for HPEVA Storage Processor Card components.
    """
    status = schema.Text(title=u"Status", readonly=True, group='Overview')
    uptime = schema.Text(title=u"Uptime", readonly=True, group='Overview')
    manufacturer = schema.Entity(title=u"Manufacturer",
                                 readonly=True,
                                 group='Details')
    product = schema.Entity(title=u"Model", readonly=True, group='Details')
    serialNumber = schema.Text(title=u"Serial #",
                               readonly=True,
                               group='Details')
    FWRev = schema.Text(title=u"Firmware", readonly=True, group='Details')
    slot = schema.Int(title=u"Slot", readonly=True, group='Details')