# This file was automatically generated by SWIG (https://www.swig.org). # Version 4.1.1 # # Do not make changes to this file unless you know what you are doing - modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info # Import the low-level C/C++ module if __package__ or "." in __name__: from . import _communication else: from arc import _communication try: import builtins as __builtin__ except ImportError: import __builtin__ def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except __builtin__.Exception: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) def _swig_setattr_nondynamic_instance_variable(set): def set_instance_attr(self, name, value): if name == "this": set(self, name, value) elif name == "thisown": self.this.own(value) elif hasattr(self, name) and isinstance(getattr(type(self), name), property): set(self, name, value) else: raise AttributeError("You cannot add instance attributes to %s" % self) return set_instance_attr def _swig_setattr_nondynamic_class_variable(set): def set_class_attr(cls, name, value): if hasattr(cls, name) and not isinstance(getattr(cls, name), property): set(cls, name, value) else: raise AttributeError("You cannot add class attributes to %s" % cls) return set_class_attr def _swig_add_metaclass(metaclass): """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass""" def wrapper(cls): return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy()) return wrapper class _SwigNonDynamicMeta(type): """Meta class to enforce nondynamic attributes (no new attributes) for a class""" __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__) class SwigPyIterator(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _communication.delete_SwigPyIterator def value(self): return _communication.SwigPyIterator_value(self) def incr(self, n=1): return _communication.SwigPyIterator_incr(self, n) def decr(self, n=1): return _communication.SwigPyIterator_decr(self, n) def distance(self, x): return _communication.SwigPyIterator_distance(self, x) def equal(self, x): return _communication.SwigPyIterator_equal(self, x) def copy(self): return _communication.SwigPyIterator_copy(self) def next(self): return _communication.SwigPyIterator_next(self) def __next__(self): return _communication.SwigPyIterator___next__(self) def previous(self): return _communication.SwigPyIterator_previous(self) def advance(self, n): return _communication.SwigPyIterator_advance(self, n) def __eq__(self, x): return _communication.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _communication.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _communication.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _communication.SwigPyIterator___isub__(self, n) def __add__(self, n): return _communication.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _communication.SwigPyIterator___sub__(self, *args) def __iter__(self): return self # Register SwigPyIterator in _communication: _communication.SwigPyIterator_swigregister(SwigPyIterator) import warnings def deprecated(method): """This decorator is used to mark python methods as deprecated, _not_ functions. It will result in a warning being emmitted when the method is used.""" def newMethod(*args, **kwargs): warnings.warn("Call to deprecated method 'arc.%s.%s'." % (args[0].__class__.__name__, method.__name__), category = DeprecationWarning, stacklevel = 2) return method(*args, **kwargs) newMethod.__name__ = method.__name__ newMethod.__doc__ = method.__doc__ newMethod.__dict__.update(method.__dict__) return newMethod class StaticPropertyWrapper(object): def __init__(self, wrapped_class): object.__setattr__(self, "wrapped_class", wrapped_class) def __getattr__(self, name): orig_attr = getattr(self.wrapped_class, name) if isinstance(orig_attr, property): return orig_attr.fget() else: return orig_attr def __setattr__(self, name, value): orig_attr = getattr(self.wrapped_class, name) if isinstance(orig_attr, property): orig_attr.fset(value) else: setattr(self.wrapped_class, name, value) from arc import common class ClientInterface(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ClientInterface_swiginit(self, _communication.new_ClientInterface(*args)) __swig_destroy__ = _communication.delete_ClientInterface def Overlay(self, cfg): return _communication.ClientInterface_Overlay(self, cfg) def GetConfig(self): return _communication.ClientInterface_GetConfig(self) def GetContext(self): return _communication.ClientInterface_GetContext(self) def Load(self): return _communication.ClientInterface_Load(self) # Register ClientInterface in _communication: _communication.ClientInterface_swigregister(ClientInterface) NoSec = _communication.NoSec TLSSec = _communication.TLSSec GSISec = _communication.GSISec SSL3Sec = _communication.SSL3Sec GSIIOSec = _communication.GSIIOSec TLS10Sec = _communication.TLS10Sec TLS11Sec = _communication.TLS11Sec TLS12Sec = _communication.TLS12Sec DTLSSec = _communication.DTLSSec DTLS10Sec = _communication.DTLS10Sec DTLS12Sec = _communication.DTLS12Sec NoEnc = _communication.NoEnc RequireEnc = _communication.RequireEnc PreferEnc = _communication.PreferEnc OptionalEnc = _communication.OptionalEnc UseNoCred = _communication.UseNoCred UseX509Cred = _communication.UseX509Cred class TCPSec(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr sec = property(_communication.TCPSec_sec_get, _communication.TCPSec_sec_set) enc = property(_communication.TCPSec_enc_get, _communication.TCPSec_enc_set) cred = property(_communication.TCPSec_cred_get, _communication.TCPSec_cred_set) def __init__(self, *args): _communication.TCPSec_swiginit(self, _communication.new_TCPSec(*args)) __swig_destroy__ = _communication.delete_TCPSec # Register TCPSec in _communication: _communication.TCPSec_swigregister(TCPSec) class ClientTCP(ClientInterface): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ClientTCP_swiginit(self, _communication.new_ClientTCP(*args)) __swig_destroy__ = _communication.delete_ClientTCP def process(self, *args): return _communication.ClientTCP_process(self, *args) def GetEntry(self): return _communication.ClientTCP_GetEntry(self) def Load(self): return _communication.ClientTCP_Load(self) def AddSecHandler(self, *args): return _communication.ClientTCP_AddSecHandler(self, *args) # Register ClientTCP in _communication: _communication.ClientTCP_swigregister(ClientTCP) class HTTPClientInfo(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr code = property(_communication.HTTPClientInfo_code_get, _communication.HTTPClientInfo_code_set) reason = property(_communication.HTTPClientInfo_reason_get, _communication.HTTPClientInfo_reason_set) size = property(_communication.HTTPClientInfo_size_get, _communication.HTTPClientInfo_size_set) lastModified = property(_communication.HTTPClientInfo_lastModified_get, _communication.HTTPClientInfo_lastModified_set) type = property(_communication.HTTPClientInfo_type_get, _communication.HTTPClientInfo_type_set) cookies = property(_communication.HTTPClientInfo_cookies_get, _communication.HTTPClientInfo_cookies_set) headers = property(_communication.HTTPClientInfo_headers_get, _communication.HTTPClientInfo_headers_set) location = property(_communication.HTTPClientInfo_location_get, _communication.HTTPClientInfo_location_set) keep_alive = property(_communication.HTTPClientInfo_keep_alive_get, _communication.HTTPClientInfo_keep_alive_set) def __init__(self): _communication.HTTPClientInfo_swiginit(self, _communication.new_HTTPClientInfo()) __swig_destroy__ = _communication.delete_HTTPClientInfo # Register HTTPClientInfo in _communication: _communication.HTTPClientInfo_swigregister(HTTPClientInfo) class ClientHTTPAttributes(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ClientHTTPAttributes_swiginit(self, _communication.new_ClientHTTPAttributes(*args)) __swig_destroy__ = _communication.delete_ClientHTTPAttributes # Register ClientHTTPAttributes in _communication: _communication.ClientHTTPAttributes_swigregister(ClientHTTPAttributes) class ClientHTTP(ClientTCP): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ClientHTTP_swiginit(self, _communication.new_ClientHTTP(*args)) __swig_destroy__ = _communication.delete_ClientHTTP def process(self, *args): return _communication.ClientHTTP_process(self, *args) def GetEntry(self): return _communication.ClientHTTP_GetEntry(self) def AddSecHandler(self, *args): return _communication.ClientHTTP_AddSecHandler(self, *args) def Load(self): return _communication.ClientHTTP_Load(self) def RelativeURI(self, val): return _communication.ClientHTTP_RelativeURI(self, val) def GetURL(self): return _communication.ClientHTTP_GetURL(self) def GetClosed(self): return _communication.ClientHTTP_GetClosed(self) # Register ClientHTTP in _communication: _communication.ClientHTTP_swigregister(ClientHTTP) class ClientSOAP(ClientHTTP): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ClientSOAP_swiginit(self, _communication.new_ClientSOAP(*args)) __swig_destroy__ = _communication.delete_ClientSOAP def process(self, *args): return _communication.ClientSOAP_process(self, *args) def GetEntry(self): return _communication.ClientSOAP_GetEntry(self) def AddSecHandler(self, *args): return _communication.ClientSOAP_AddSecHandler(self, *args) def Load(self): return _communication.ClientSOAP_Load(self) # Register ClientSOAP in _communication: _communication.ClientSOAP_swigregister(ClientSOAP) class SecHandlerConfig(common.XMLNode): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.SecHandlerConfig_swiginit(self, _communication.new_SecHandlerConfig(*args)) __swig_destroy__ = _communication.delete_SecHandlerConfig # Register SecHandlerConfig in _communication: _communication.SecHandlerConfig_swigregister(SecHandlerConfig) class DNListHandlerConfig(SecHandlerConfig): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.DNListHandlerConfig_swiginit(self, _communication.new_DNListHandlerConfig(*args)) def AddDN(self, dn): return _communication.DNListHandlerConfig_AddDN(self, dn) __swig_destroy__ = _communication.delete_DNListHandlerConfig # Register DNListHandlerConfig in _communication: _communication.DNListHandlerConfig_swigregister(DNListHandlerConfig) class ARCPolicyHandlerConfig(SecHandlerConfig): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ARCPolicyHandlerConfig_swiginit(self, _communication.new_ARCPolicyHandlerConfig(*args)) def AddPolicy(self, *args): return _communication.ARCPolicyHandlerConfig_AddPolicy(self, *args) __swig_destroy__ = _communication.delete_ARCPolicyHandlerConfig # Register ARCPolicyHandlerConfig in _communication: _communication.ARCPolicyHandlerConfig_swigregister(ARCPolicyHandlerConfig) DELEG_ARC = _communication.DELEG_ARC DELEG_GRIDSITE = _communication.DELEG_GRIDSITE DELEG_GT4 = _communication.DELEG_GT4 DELEG_MYPROXY = _communication.DELEG_MYPROXY DELEG_UNKNOWN = _communication.DELEG_UNKNOWN class ClientX509Delegation(object): thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") __repr__ = _swig_repr def __init__(self, *args): _communication.ClientX509Delegation_swiginit(self, _communication.new_ClientX509Delegation(*args)) __swig_destroy__ = _communication.delete_ClientX509Delegation def createDelegation(self, deleg): return _communication.ClientX509Delegation_createDelegation(self, deleg) def destroyDelegation(self, arg2): return _communication.ClientX509Delegation_destroyDelegation(self, arg2) def acquireDelegation(self, *args): return _communication.ClientX509Delegation_acquireDelegation(self, *args) # Register ClientX509Delegation in _communication: _communication.ClientX509Delegation_swigregister(ClientX509Delegation)