Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, options, session, raw=None):
if raw:
self._parse_raw(raw)
Resource.__init__(
self,
"servicedesk/{0}/requesttype",
options,
session,
"{server}/rest/servicedeskapi/{path}",
)
def __init__(self, options, session, raw=None):
Resource.__init__(self, "securitylevel/{0}", options, session)
if raw:
self._parse_raw(raw)
def __init__(self, options, session, raw=None):
Resource.__init__(self, "priority/{0}", options, session)
if raw:
self._parse_raw(raw)
def __init__(self, options, session, raw=None):
Resource.__init__(self, "unknown{0}", options, session)
if raw:
self._parse_raw(raw)
def __init__(self, options, session, raw=None):
Resource.__init__(self, "customFieldOption/{0}", options, session)
if raw:
self._parse_raw(raw)
def __init__(self, options, session, raw=None):
Resource.__init__(self, "project/{0}/role/{1}", options, session)
if raw:
self._parse_raw(raw)
def __init__(self, options, session, raw=None):
Resource.__init__(
self, "customer", options, session, "{server}/rest/servicedeskapi/{path}"
)
if raw:
self._parse_raw(raw)
def __init__(self, options, session, raw=None):
Resource.__init__(self, "issue/{0}/remotelink/{1}", options, session)
if raw:
self._parse_raw(raw)
def __init__(self, path, options, session, raw):
self.self = None
Resource.__init__(self, path, options, session, self.AGILE_BASE_URL)
if raw:
self._parse_raw(raw)
# Old GreenHopper API did not contain self - create it for backward compatibility.
if not self.self:
self.self = self._get_url(path.format(raw["id"]))
def __init__(self, options, session, raw=None):
Resource.__init__(self, "component/{0}", options, session)
if raw:
self._parse_raw(raw)