# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
class BaseObject:
__slots__ = ()
def __repr__(self):
tmp = {}
for key in self.__slots__:
data = getattr(self, key, None)
if isinstance(data, BaseObject):
tmp[key] = repr(data)
else:
tmp[key] = data
return repr(tmp)
[docs]class ExporterOptions(BaseObject):
"""Configuration for Azure Exporters.
:param str connection_string: Azure Connection String.
"""
__slots__ = (
"connection_string",
)
def __init__(
self,
connection_string: str = None
) -> None:
self.connection_string = connection_string