jnpr/space/factory.py
def make_resource(type_name, rest_end_point,
                  xml_data=None, attributes=None, parent=None):
    """Creates a new instance of jnpr.space.resource.Resource based on the
    given parameters. This method creates it in-memory locally and *not* on
    the Space server. The post() method must be invoked on the Resource object
    to get it created on the Space server.

    :param str type_name: Fully qualified type name for the Resource to be
        created. It is of the format ``<service_name>.<resource_type>``.
        Some examples are:

            * ``device_management.device``
            * ``user_management.user``

    :param rest_end_point: A *Space* object encapsulating the Junos
        Space cluster which is to contain this resource.
    :type rest_end_point: jnpr.space.rest.Space

    :param lxml.etree.Element xml_data:  The state of the resource as an
        XML object. This defaults to ``None``.

    :param dict attributes:  The state of the resource as a dict where the
        keys are attribute names and values are attribute values.
        This defaults to ``None``.

    :param parent: The parent object of this resource. This defaults to
        ``None``.
    :type parent: jnpr.space.collection.Collection

    :returns: A new instance of jnpr.space.resource.Resource

    """
    return resource.Resource(type_name,
                             rest_end_point,
                             xml_data,
                             attributes,
                             parent)
Creates a new instance of jnpr.space.resource.Resource based on the
    given parameters. This method creates it in-memory locally and *not* on
    the Space server. The post() method must be invoked on the Resource object
    to get it created on the Space server.

    :param str type_name: Fully qualified type name for the Resource to be
        created. It is of the format ``<service_name>.<resource_type>``.
        Some examples are:

            * ``device_management.device``
            * ``user_management.user``

    :param rest_end_point: A *Space* object encapsulating the Junos
        Space cluster which is to contain this resource.
    :type rest_end_point: jnpr.space.rest.Space

    :param lxml.etree.Element xml_data:  The state of the resource as an
        XML object. This defaults to ``None``.

    :param dict attributes:  The state of the resource as a dict where the
        keys are attribute names and values are attribute values.
        This defaults to ``None``.

    :param parent: The parent object of this resource. This defaults to
        ``None``.
    :type parent: jnpr.space.collection.Collection

    :returns: A new instance of jnpr.space.resource.Resource

    
Creates a new instance of jnpr.space.resource.Resource based on the
given parameters. This method creates it in-memory locally and *not* on
the Space server. The post() method must be invoked on the Resource object
to get it created on the Space server.
Creates a new instance of jnpr . space . resource . Resource based on the given parameters . This method creates it in - memory locally and * not * on the Space server . The post () method must be invoked on the Resource object to get it created on the Space server .
def make_resource(type_name, rest_end_point,
                  xml_data=None, attributes=None, parent=None):
    return resource.Resource(type_name,
                             rest_end_point,
                             xml_data,
                             attributes,
                             parent)
def make_resource ( type_name , rest_end_point , xml_data = None , attributes = None , parent = None ) : return resource . Resource ( type_name , rest_end_point , xml_data , attributes , parent )
Creates a new instance of jnpr.space.resource.Resource based on the
given parameters.
Creates a new instance of jnpr . space . resource . Resource based on the given parameters .
"""Creates a new instance of jnpr.space.resource.Resource based on the
    given parameters. This method creates it in-memory locally and *not* on
    the Space server. The post() method must be invoked on the Resource object
    to get it created on the Space server.

    :param str type_name: Fully qualified type name for the Resource to be
        created. It is of the format ``<service_name>.<resource_type>``.
        Some examples are:

            * ``device_management.device``
            * ``user_management.user``

    :param rest_end_point: A *Space* object encapsulating the Junos
        Space cluster which is to contain this resource.
    :type rest_end_point: jnpr.space.rest.Space

    :param lxml.etree.Element xml_data:  The state of the resource as an
        XML object. This defaults to ``None``.

    :param dict attributes:  The state of the resource as a dict where the
        keys are attribute names and values are attribute values.
        This defaults to ``None``.

    :param parent: The parent object of this resource. This defaults to
        ``None``.
    :type parent: jnpr.space.collection.Collection

    :returns: A new instance of jnpr.space.resource.Resource

    """
A new instance of jnpr.space.resource.Resource
A new instance of jnpr . space . resource . Resource
type_name
Fully qualified type name for the Resource to be
created. It is of the format ``.``.
Some examples are.

``device_management.device``
``user_management.user``
Fully qualified type name for the Resource to be created . It is of the format ` ` . ` ` . Some examples are . ` ` device_management . device ` ` ` ` user_management . user ` `
rest_end_point
A *Space* object encapsulating the Junos
Space cluster which is to contain this resource.
A * Space * object encapsulating the Junos Space cluster which is to contain this resource .
xml_data
The state of the resource as an
XML object. This defaults to ``None``.
The state of the resource as an XML object . This defaults to ` ` None ` ` .
``None``
attributes
The state of the resource as a dict where the
keys are attribute names and values are attribute values.
This defaults to ``None``.
The state of the resource as a dict where the keys are attribute names and values are attribute values . This defaults to ` ` None ` ` .
``None``
parent
The parent object of this resource. This defaults to
``None``.
The parent object of this resource . This defaults to ` ` None ` ` .