code: def get_url(cls, data):
          
          try:
              data = int(data)
          except (ValueError, TypeError):
              pass
          if isinstance(data, int):
              return "%s%s%s" % (cls._url, cls.id_url, data)
          elif data is None:
              return cls._url
          elif isinstance(data, basestring):
              if "=" in data:
                  key, value = data.split("=")   # pylint: disable=no-member
                  if key in cls.search_types:
                      return "%s%s%s" % (cls._url, cls.search_types[key], value)
                  else:
                      raise JSSUnsupportedSearchMethodError(
                          "This object cannot be queried by %s." % key)
              else:
                  return "%s%s%s" % (cls._url,
                                     cls.search_types[cls.default_search], data)
          else:
              raise ValueError
docs: Return the URL for a get request based on data type.
  
          Args:
              data: Accepts multiple types.
                  Int: Generate URL to object with data ID.
                  None: Get basic object GET URL (list).
                  String/Unicode: Search for <data> with default_search,
                      usually "name".
                  String/Unicode with "=": Other searches, for example
                      Computers can be search by uuid with:
                      "udid=E79E84CB-3227-5C69-A32C-6C45C2E77DF5"
                      See the class "search_types" attribute for options.