def __init__(self, base_url, username=None, apikey=None, http_headers=None): self.base_url = base_url self.projects = ProjectService(base_url, username, apikey, http_headers) self.documents = DocumentService(self.projects, base_url, http_headers) self.version = VersionService(base_url, http_headers)
class ZanataResource: def __init__(self, base_url, username = None, apikey = None,http_headers=None): self.base_url = base_url self.projects = ProjectService(base_url, username, apikey,http_headers) self.documents = DocumentService(self.projects,base_url,http_headers) self.version = VersionService(base_url,http_headers) def disable_ssl_cert_validation(self): self.projects.disable_ssl_cert_validation() self.version.disable_ssl_cert_validation()
class ZanataResource: def __init__(self, base_url, http_headers): self.base_url = base_url self.projects = ProjectService(base_url, http_headers) self.documents = DocumentService(self.projects, base_url, http_headers) self.version = VersionService(base_url, http_headers) self.glossary = GlossaryService(base_url, http_headers) self.stats = StatService(base_url, http_headers) def disable_ssl_cert_validation(self): self.projects.disable_ssl_cert_validation() self.version.disable_ssl_cert_validation()
class ZanataResource: def __init__(self, base_url, username=None, apikey=None, http_headers=None): self.base_url = base_url self.projects = ProjectService(base_url, username, apikey, http_headers) self.documents = DocumentService(self.projects, base_url, http_headers) self.version = VersionService(base_url, http_headers) def disable_ssl_cert_validation(self): self.projects.disable_ssl_cert_validation() self.version.disable_ssl_cert_validation()
def __init__(self, base_url, http_headers): self.base_url = base_url self.projects = ProjectService(base_url, http_headers) self.documents = DocumentService(self.projects, base_url, http_headers) self.version = VersionService(base_url, http_headers) self.glossary = GlossaryService(base_url, http_headers) self.stats = StatService(base_url, http_headers)
def __init__(self, base_url, username = None, apikey = None,http_headers=None): self.base_url = base_url self.projects = ProjectService(base_url, username, apikey,http_headers) self.documents = DocumentService(self.projects,base_url,http_headers) self.version = VersionService(base_url,http_headers)