示例#1
0
class InfrastructureKeyTable(Table):

    columns = [
        Column('name', header='Name'),
        Column('id', header='ID'),
        Column('description', header='Description')
    ]
示例#2
0
文件: test_table.py 项目: IBM/lmctl
class DummyTableNoHeaders(Table):
    columns = [
        Column('name'),
        Column('status',
               accessor=lambda x: 'OK' if x.get('status', None) in
               ['Excellent', 'Good'] else 'Unhealthy'),
    ]
示例#3
0
class ScenarioTable(Table):

    columns = [
        Column('id', header='ID'),
        Column('name', header='Name'),
        Column('description', header='Description')
    ]
示例#4
0
class ResourceDriverTable(Table):

    columns = [
        Column('id', header='ID'),
        Column('type', header='Type'),
        Column('baseUri', header='Base URI')
    ]
示例#5
0
class ResourceManagerTable(Table):

    columns = [
        Column('name', header='Name'),
        Column('type', header='Type'),
        Column('url', header='URL')
    ]
示例#6
0
class ResourceManagerOnboardingReportTable(Table):
    columns = [
        Column('name', header='Name'),
        Column('operation', header='Operation'),
        Column('success', header='Success'),
        Column('reason', header='Failure Reason'),
    ]
示例#7
0
class AssemblyTable(Table):

    columns = [
        Column('id', header='ID'),
        Column('name', header='Name'),
        Column('descriptorName', header='Descriptor Name'),
        Column('state', header='State')
    ]
示例#8
0
class DeploymentLocationTable(Table):

    columns = [
        Column('name', header='Name'),
        Column('resourceManager', header='Resource Manager'),
        Column('infrastructureType', header='Infrastructure Type'),
        Column('description', header='Description')
    ]
class AssemblyConfigurationTable(Table):

    columns = [
        Column('id', header='ID'),
        Column('name', header='Name'),
        Column('description', header='Description'),
        Column('descriptorName', header='Descriptor Name')
    ]
示例#10
0
文件: env.py 项目: IBM/lmctl
class EnvironmentTable(Table):
    
    columns = [
        Column('name', header='Name'),
        Column('description', header='Description'),
        Column('tnco', header='TNCO/ALM', accessor=lambda x: x.tnco.address if x.tnco else None),
        Column('auth', header='Auth', accessor=lambda x: x.tnco.auth_mode if x.tnco else None),
        Column('arm', header='Ansible RM', accessor=build_arms_string)
    ]
示例#11
0
class ScenarioExecutionTable(Table):
    
    columns = [
        Column('id', header='ID'),
        Column('name', header='Execution Name'),
        Column('scenarioId', header='Scenario'),
        Column('startedAt', header='Started At'),
        Column('status', header='Status')
    ]
示例#12
0
class DescriptorTemplatesTable(Table):

    columns = [
        Column('name', header='Name'),
        Column('description',
               header='Description',
               accessor=lambda x: (x.get('description')[:75].strip() + '..')
               if x.get('description', None) is not None and len(
                   x.get('description')) > 75 else x.get('description'))
    ]
示例#13
0
class ProcessTable(Table):

    columns = [
        Column('startTime', header='Start Time'),
        Column('intentType', header='Intent'),
        Column('status', header='Status'),
        Column('assembly',
               header='Assembly',
               accessor=lambda x: x.get('assemblyName') + ' (' + x.get(
                   'assemblyId') + ')'),
    ]
示例#14
0
class ProjectTable(Table):

    columns = [
        Column('name', header='Name'),
        Column('description', header='Description')
    ]
示例#15
0
文件: env.py 项目: IBM/lmctl
class PingTable(Table):
    columns = [
        Column('name', header='Test Name'),
        Column('result', header='Result', accessor=lambda x: 'OK' if x.passed else 'Failed'),
        Column('error', header='Error')
    ]