Ńň ›ˆQc@sRdZddkZddklZdefd„ƒYZdefd„ƒYZdS(sŸSchema processing for discovery based APIs Schemas holds an APIs discovery schemas. It can return those schema as deserialized JSON objects, or pretty print them as prototype objects that conform to the schema. For example, given the schema: schema = """{ "Foo": { "type": "object", "properties": { "etag": { "type": "string", "description": "ETag of the collection." }, "kind": { "type": "string", "description": "Type of the collection ('calendar#acl').", "default": "calendar#acl" }, "nextPageToken": { "type": "string", "description": "Token used to access the next page of this result. Omitted if no further results are available." } } } }""" s = Schemas(schema) print s.prettyPrintByName('Foo') Produces the following output: { "nextPageToken": "A String", # Token used to access the # next page of this result. Omitted if no further results are available. "kind": "A String", # Type of the collection ('calendar#acl'). "etag": "A String", # ETag of the collection. }, The constructor takes a discovery document in which to look up named schema. i˙˙˙˙N(t simplejsontSchemascBsPeZdZd„Zddd„Zd„Zddd„Zd„Zd„Z RS( sSchemas for an API.cCs"|idhƒ|_h|_dS(s†Constructor. Args: discovery: object, Deserialized discovery document from which we pull out the named schema. tschemasN(tgetRtpretty(tselft discovery((sa/Users/riccardo/git/gcloud/packages/gcutil-1.7.1/lib/google_api_python_client/apiclient/schema.pyt__init__GsicCs|djo g}n||jo d|S|i|ƒ||ijo0t|i|||ƒi|iƒ|i|:s _