@@ -33,104 +33,104 @@ class SzConfig(ABC):
3333 # -------------------------------------------------------------------------
3434
3535 @abstractmethod
36- def register_data_source (self , data_source_code : str ) -> str :
36+ def export (self ) -> str :
3737 """
38- The `register_data_source ` method adds a new data source to this instance .
38+ The `export ` method retrieves the definition for this configuration .
3939
4040 Args:
41- data_source_code (str): Name of data source code to add.
4241
4342 Returns:
44- str: A string containing a JSON document listing the newly created data source .
43+ str: A string containing a JSON Document representation of the Senzing SzConfig object .
4544
4645 Raises:
4746 TypeError: Incorrect datatype of input parameter.
4847
4948 .. collapse:: Example:
5049
51- .. literalinclude:: ../../examples/szconfig/register_data_source .py
50+ .. literalinclude:: ../../examples/szconfig/export .py
5251 :linenos:
5352 :language: python
5453
5554 **Output:**
5655
57- .. literalinclude:: ../../examples/szconfig/register_data_source .txt
56+ .. literalinclude:: ../../examples/szconfig/export .txt
5857 :linenos:
5958 :language: json
6059 """
6160
6261 @abstractmethod
63- def unregister_data_source (self , data_source_code : str ) -> str :
62+ def get_data_source_registry (self ) -> str :
6463 """
65- The `unregister_data_source ` method deletes a data source from this instance .
64+ The `get_data_source_registry ` method gets the data source registry for this configuration .
6665
6766 Args:
68- data_source_code (str): Name of data source code to delete.
67+
68+ Returns:
69+ str: A string containing a JSON document listing all of the data sources.
6970
7071 Raises:
7172 TypeError: Incorrect datatype of input parameter.
7273
7374 .. collapse:: Example:
7475
75- .. literalinclude:: ../../examples/szconfig/unregister_data_source .py
76+ .. literalinclude:: ../../examples/szconfig/get_data_source_registry .py
7677 :linenos:
7778 :language: python
7879
7980 **Output:**
8081
81- .. literalinclude:: ../../examples/szconfig/unregister_data_source .txt
82+ .. literalinclude:: ../../examples/szconfig/get_data_source_registry .txt
8283 :linenos:
8384 :language: json
8485 """
8586
8687 @abstractmethod
87- def export (self ) -> str :
88+ def register_data_source (self , data_source_code : str ) -> str :
8889 """
89- The `export ` method retrieves the configuration definition for this instance .
90+ The `register_data_source ` method adds a data source to this configuration .
9091
9192 Args:
93+ data_source_code (str): Name of data source code to add.
9294
9395 Returns:
94- str: A string containing a JSON Document representation of the Senzing SzConfig object .
96+ str: A string containing a JSON document listing the newly created data source .
9597
9698 Raises:
9799 TypeError: Incorrect datatype of input parameter.
98100
99101 .. collapse:: Example:
100102
101- .. literalinclude:: ../../examples/szconfig/export .py
103+ .. literalinclude:: ../../examples/szconfig/register_data_source .py
102104 :linenos:
103105 :language: python
104106
105107 **Output:**
106108
107- .. literalinclude:: ../../examples/szconfig/export .txt
109+ .. literalinclude:: ../../examples/szconfig/register_data_source .txt
108110 :linenos:
109111 :language: json
110112 """
111113
112114 @abstractmethod
113- def get_data_source_registry (self ) -> str :
115+ def unregister_data_source (self , data_source_code : str ) -> str :
114116 """
115- The `get_data_source_registry ` method gets the data sources for this instance .
117+ The `unregister_data_source ` method removes a data source from this configuration .
116118
117119 Args:
118-
119- Returns:
120- str: A string containing a JSON document listing all of the data sources.
120+ data_source_code (str): Name of data source code to delete.
121121
122122 Raises:
123123 TypeError: Incorrect datatype of input parameter.
124124
125125 .. collapse:: Example:
126126
127- .. literalinclude:: ../../examples/szconfig/get_data_source_registry .py
127+ .. literalinclude:: ../../examples/szconfig/unregister_data_source .py
128128 :linenos:
129129 :language: python
130130
131131 **Output:**
132132
133- .. literalinclude:: ../../examples/szconfig/get_data_source_registry .txt
133+ .. literalinclude:: ../../examples/szconfig/unregister_data_source .txt
134134 :linenos:
135135 :language: json
136136 """
0 commit comments