(self, cls, api_name=None, **kwargs)
Sets the `RemoteObject` class of the target resource and,
        optionally, the real relative URL of the resource.

        Optional parameter `api_name` is used as the link's relative URL. If
        not given, the name of the attribute to which the Link is assigned
        will be used.
Sets the `RemoteObject` class of the target resource and,
        optionally, the real relative URL of the resource.
Sets the RemoteObject class of the target resource and optionally the real relative URL of the resource .
def __init__(self, cls, api_name=None, **kwargs):
        """Sets the `RemoteObject` class of the target resource and,
        optionally, the real relative URL of the resource.

        Optional parameter `api_name` is used as the link's relative URL. If
        not given, the name of the attribute to which the Link is assigned
        will be used.

        """
        self.cls = cls
        self.api_name = api_name
        super(Link, self).__init__(**kwargs)
def __init__ ( self , cls , api_name = None , * * kwargs ) : self . cls = cls self . api_name = api_name super ( Link , self ) . __init__ ( * * kwargs )