airbyte_cdk.sources.declarative.transformations.config_transformations.config_transformation
1# 2# Copyright (c) 2025 Airbyte, Inc., all rights reserved. 3# 4 5from abc import ABC, abstractmethod 6from typing import Any, MutableMapping 7 8 9class ConfigTransformation(ABC): 10 """ 11 Implementations of this class define transformations that can be applied to source configurations. 12 """ 13 14 @abstractmethod 15 def transform( 16 self, 17 config: MutableMapping[str, Any], 18 ) -> None: 19 """ 20 Transform a configuration by adding, deleting, or mutating fields directly from the config reference passed in argument. 21 22 :param config: The user-provided configuration to be transformed 23 """
class
ConfigTransformation(abc.ABC):
10class ConfigTransformation(ABC): 11 """ 12 Implementations of this class define transformations that can be applied to source configurations. 13 """ 14 15 @abstractmethod 16 def transform( 17 self, 18 config: MutableMapping[str, Any], 19 ) -> None: 20 """ 21 Transform a configuration by adding, deleting, or mutating fields directly from the config reference passed in argument. 22 23 :param config: The user-provided configuration to be transformed 24 """
Implementations of this class define transformations that can be applied to source configurations.
@abstractmethod
def
transform(self, config: MutableMapping[str, Any]) -> None:
15 @abstractmethod 16 def transform( 17 self, 18 config: MutableMapping[str, Any], 19 ) -> None: 20 """ 21 Transform a configuration by adding, deleting, or mutating fields directly from the config reference passed in argument. 22 23 :param config: The user-provided configuration to be transformed 24 """
Transform a configuration by adding, deleting, or mutating fields directly from the config reference passed in argument.
Parameters
- config: The user-provided configuration to be transformed