Returns the content in this given space with the given type.
        :param space_key (string): A string containing the key of the space.
        :param content_type (string): The type of content to return with the space. Valid values: "page", "blogpost".
        :param depth (string): OPTIONAL: A string indicating if all content, or just the root content of the space is
                               returned. Default: "all". Valid values: "all", "root".
        :param expand (string): OPTIONAL: A comma separated list of properties to expand on each piece of content
                                retrieved. Default: Empty.
        :param start (int): OPTIONAL: The start point of the collection to return. Default: 0.
        :param limit (int): OPTIONAL: The limit of the number of labels to return, this may be restricted by fixed
                            system limits. Default: 25.
        :param callback: OPTIONAL: The callback to execute on the resulting data, before the method returns.
                         Default: None (no callback, raw data returned).
        :return: The JSON data returned from the space/{spaceKey}/content/{type} endpoint,
                 or the results of the callback. Will raise requests.HTTPError on bad input, potentially.

def get_space_content_by_type(self, space_key, content_type, depth=None, expand=None, start=None, limit=None,
                                  callback=None):
        """
        Returns the content in this given space with the given type.
        :param space_key (string): A string containing the key of the space.
        :param content_type (string): The type of content to return with the space. Valid values: "page", "blogpost".
        :param depth (string): OPTIONAL: A string indicating if all content, or just the root content of the space is
                               returned. Default: "all". Valid values: "all", "root".
        :param expand (string): OPTIONAL: A comma separated list of properties to expand on each piece of content
                                retrieved. Default: Empty.
        :param start (int): OPTIONAL: The start point of the collection to return. Default: 0.
        :param limit (int): OPTIONAL: The limit of the number of labels to return, this may be restricted by fixed
                            system limits. Default: 25.
        :param callback: OPTIONAL: The callback to execute on the resulting data, before the method returns.
                         Default: None (no callback, raw data returned).
        :return: The JSON data returned from the space/{spaceKey}/content/{type} endpoint,
                 or the results of the callback. Will raise requests.HTTPError on bad input, potentially.
        """
        assert content_type in ["page", "blogpost"]
        params = {}
        if depth:
            assert depth in {"all", "root"}
            params["depth"] = depth
        if expand:
            params["expand"] = expand
        if start is not None:
            params["start"] = int(start)
        if limit is not None:
            params["limit"] = int(limit)
        return self._service_get_request("rest/api/space/{key}/content/{type}".format(key=space_key, type=content_type),
                                         params=params, callback=callback)