def CreateEmptyResourceSample():
 client = CreateClient()
 document = gdata.docs.data.Resource(type='document', title='My Sample Doc')
 document = client.CreateResource(document)
 print 'Created:', document.title.text, document.resource_id.text

def CreateEmptyResourceSample ( ) : client = CreateClient ( ) document = gdata . docs . data . Resource ( type = 'document' , title = 'My Sample Doc' ) document = client . CreateResource ( document ) print 'Created:' , document . title . text , document . resource_id . text
create an empty resource of type document .