示例#1
0
def component_types_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Type"]),
            wrap_text(row["Description"]),
        ])
    return tabulate(
        tablerows,
        headers=["Type", "Description"],
        tablefmt="github",
    )
示例#2
0
def list_occurrences_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["TierId"]),
            wrap_text(row["ComponentId"]),
            wrap_text(row["Name"]),
            wrap_text(row["Type"]),
        ])
    return tabulate(tablerows,
                    headers=["TierId", "ComponentId", "Name", "Type"],
                    tablefmt="github")
示例#3
0
def layer_list_data_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Name"]),
            wrap_text(row["Id"]),
            wrap_text(row["Type"]),
            wrap_text(row["Active"]),
        ])
    return tabulate(tablerows,
                    headers=["Name", "Id", "Type", "Active"],
                    tablefmt="github")
示例#4
0
def layer_types_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Type"]),
            wrap_text(row["ReferenceLookupType"]),
            wrap_text(row["Description"]),
        ])
    return tabulate(
        tablerows,
        headers=["Type", "ReferenceLookupType", "Description"],
        tablefmt="github",
    )
示例#5
0
def entrances_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Type"]),
            wrap_text(row["Description"]),
        ])
    return tabulate(
        tablerows,
        headers=["Type", "Description"],
        showindex=True,
        tablefmt="fancy_grid",
    )
示例#6
0
def engine_locations_table(data):
    tablerows = []
    for row in data:
        tablerows.append(
            [
                wrap_text(row["name"]),
                wrap_text(row["description"]),
            ]
        )
    return tabulate(
        tablerows,
        headers=["Name", "Description"],
        tablefmt="github",
    )
示例#7
0
def schema_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["Schema"]),
        ])
    return tabulate(tablerows, headers=["Schema"], tablefmt="github")
示例#8
0
def list_runbooks_table(data):
    tablerows = []
    for row in data:
        tablerows.append(
            [
                wrap_text(row["Name"]),
                wrap_text(row["Description"]),
                wrap_text(row["Engine"]),
            ]
        )
    return tabulate(
        tablerows,
        headers=[
            "Name",
            "Description",
            "Engine",
        ],
        tablefmt="github",
    )
示例#9
0
def deployments_table(data):
    tablerows = []
    for row in data:
        tablerows.append([
            wrap_text(row["DeploymentGroup"]),
            wrap_text(row["DeploymentUnit"]),
            wrap_text(row["DeploymentProvider"]),
            wrap_text(row["CurrentState"]),
            wrap_text(row["District"]),
        ])
    return tabulate(
        tablerows,
        headers=[
            "Deployment Group",
            "Deployment Unit",
            "Provider",
            "State",
            "District",
        ],
        tablefmt="github",
    )