#NEWLINE# def _create( self , resource_type , path_args = None , **attrs ) : #NEWLINE# #INDENT# 'Create a resource from attributes\n\n        :param resource_type: The type of resource to create.\n        :type resource_type: :class:`~openstack.resource.Resource`\n        :param path_args: A dict containing arguments for forming the request\n                          URL, if needed.\n        :param **attrs: Attributes from which to create a Resource object.\n                        These attributes will be used in conjunction with\n                        ``resource_type``.\n\n        :returns: The result of the ``create``\n        :rtype: :class:`~openstack.resource.Resource`\n        ' #NEWLINE# res = resource_type . new ( ** attrs ) #NEWLINE# if ( path_args is not None ) : #NEWLINE# #INDENT# res . update_attrs ( res ) #NEWLINE# #UNINDENT# return res . create ( self . session )