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", )
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")
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")
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", )
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", )
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", )
def schema_table(data): tablerows = [] for row in data: tablerows.append([ wrap_text(row["Schema"]), ]) return tabulate(tablerows, headers=["Schema"], tablefmt="github")
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", )
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", )