def __init__(self, site_section_name, resource_identifier):
     self._site_section_name = site_section_name
     if site_section_name in ["validations", "profiling"]:
         if isinstance(resource_identifier, ValidationResultIdentifier):
             self._resource_identifier = resource_identifier
         elif isinstance(resource_identifier, (tuple, list)):
             self._resource_identifier = ValidationResultIdentifier(
                 *resource_identifier
             )
         else:
             self._resource_identifier = ValidationResultIdentifier(
                 **resource_identifier
             )
     elif site_section_name == "expectations":
         if isinstance(resource_identifier, ExpectationSuiteIdentifier):
             self._resource_identifier = resource_identifier
         elif isinstance(resource_identifier, (tuple, list)):
             self._resource_identifier = ExpectationSuiteIdentifier(
                 *resource_identifier
             )
         else:
             self._resource_identifier = ExpectationSuiteIdentifier(
                 **resource_identifier
             )
     else:
         raise InvalidDataContextKeyError(
             "SiteSectionIdentifier only supports 'validations' and 'expectations' as site section names"
         )
 def __init__(self, expectation_suite_name: str):
     super().__init__()
     if not isinstance(expectation_suite_name, str):
         raise InvalidDataContextKeyError(
             f"expectation_suite_name must be a string, not {type(expectation_suite_name).__name__}"
         )
     self._expectation_suite_name = expectation_suite_name
 def __init__(self, configuration_key: str):
     super().__init__()
     if not isinstance(configuration_key, str):
         raise InvalidDataContextKeyError(
             f"configuration_key must be a string, not {type(configuration_key).__name__}"
         )
     self._configuration_key = configuration_key
 def __init__(self, configuration_key: Union[str, UUID]) -> None:
     super().__init__()
     if isinstance(configuration_key, UUID):
         configuration_key = str(configuration_key)
     if not isinstance(configuration_key, str):
         raise InvalidDataContextKeyError(
             f"configuration_key must be a string, not {type(configuration_key).__name__}"
         )
     self._configuration_key = configuration_key
 def from_tuple(cls, tuple_):
     if tuple_[0] == "validations":
         return cls(
             site_section_name=tuple_[0],
             resource_identifier=ValidationResultIdentifier.from_tuple(tuple_[1:]),
         )
     elif tuple_[0] == "expectations":
         return cls(
             site_section_name=tuple_[0],
             resource_identifier=ExpectationSuiteIdentifier.from_tuple(tuple_[1:]),
         )
     else:
         raise InvalidDataContextKeyError(
             "SiteSectionIdentifier only supports 'validations' and 'expectations' as site section names"
         )