MCPcopy Index your code
hub / github.com/googleapis/google-api-python-client / prettyPrintByName

Method prettyPrintByName

googleapiclient/schema.py:116–127  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 4

createMethodFunction · 0.80
test_basic_formattingMethod · 0.80

Calls 1

_prettyPrintByNameMethod · 0.95

Tested by 3

test_basic_formattingMethod · 0.64