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

Method to_str

googleapiclient/schema.py:304–317  ·  view source on GitHub ↗

Prototype object based on the schema, in Python code with comments. Args: from_cache: callable(name, seen), Callable that retrieves an object prototype for a schema with the given name. Seen is a list of schema names already seen as we recursively descend

(self, from_cache)

Source from the content-addressed store, hash-verified

302 return self.string
303
304 def to_str(self, from_cache):
305 """Prototype object based on the schema, in Python code with comments.
306
307 Args:
308 from_cache: callable(name, seen), Callable that retrieves an object
309 prototype for a schema with the given name. Seen is a list of schema
310 names already seen as we recursively descend the schema definition.
311
312 Returns:
313 Prototype object based on the schema, in Python code with comments.
314 The lines of the code will all be properly indented.
315 """
316 self.from_cache = from_cache
317 return self._to_str_impl(self.schema)

Callers 2

_prettyPrintByNameMethod · 0.80
_prettyPrintSchemaMethod · 0.80

Calls 1

_to_str_implMethod · 0.95

Tested by

no test coverage detected