#NEWLINE# def deploy_container( self , name , image , cluster = None , parameters = None , start = True ) : #NEWLINE# #INDENT# '\n        Deploy an installed container image.\n        In kubernetes this deploys a single container Pod.\n        https://cloud.google.com/container-engine/docs/pods/single-container\n\n        :param name: The name of the new container\n        :type  name: ``str``\n\n        :param image: The container image to deploy\n        :type  image: :class:`.ContainerImage`\n\n        :param cluster: The cluster to deploy to, None is default\n        :type  cluster: :class:`.ContainerCluster`\n\n        :param parameters: Container Image parameters\n        :type  parameters: ``str``\n\n        :param start: Start the container on deployment\n        :type  start: ``bool``\n\n        :rtype: :class:`.Container`\n        ' #NEWLINE# if ( cluster is None ) : #NEWLINE# #INDENT# namespace = 'default' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# namespace = request . id #NEWLINE# #UNINDENT# request = { #NEWLINE# #INDENT# 'metadata' : { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# #UNINDENT# } , #NEWLINE# 'spec' : { #NEWLINE# #INDENT# 'containers' : [ { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'image' : image . name , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# result = self . connection . request ( ( ROOT_URL + ( 'v1/namespaces/%s/pods' % namespace ) ) , method = 'POST' , data = json . dumps ( request ) ) . object #NEWLINE# return self . _to_cluster ( result )