Get pretty printed object prototype from the schema name. Args: name: string, Name of schema in the discovery document. Returns: string, A string that contains a prototype object with comments that conforms to the given schema.
(self, name)
| 114 | return self.pretty[name] |
| 115 | |
| 116 | def prettyPrintByName(self, name): |
| 117 | """Get pretty printed object prototype from the schema name. |
| 118 | |
| 119 | Args: |
| 120 | name: string, Name of schema in the discovery document. |
| 121 | |
| 122 | Returns: |
| 123 | string, A string that contains a prototype object with |
| 124 | comments that conforms to the given schema. |
| 125 | """ |
| 126 | # Return with trailing comma and newline removed. |
| 127 | return self._prettyPrintByName(name, seen=[], dent=0)[:-2] |
| 128 | |
| 129 | @util.positional(2) |
| 130 | def _prettyPrintSchema(self, schema, seen=None, dent=0): |