1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14+ """
15+ .. warning::
16+ **Preview API**: Firestore Pipelines is currently in preview and is
17+ subject to potential breaking changes in future releases
18+ """
1419
1520from __future__ import annotations
1621from typing import TYPE_CHECKING
@@ -50,6 +55,10 @@ class AsyncPipeline(_BasePipeline):
5055 ... print(result)
5156
5257 Use `client.pipeline()` to create instances of this class.
58+
59+ .. warning::
60+ **Preview API**: Firestore Pipelines is currently in preview and is
61+ subject to potential breaking changes in future releases
5362 """
5463
5564 def __init__ (self , client : AsyncClient , * stages : stages .Stage ):
@@ -68,7 +77,6 @@ async def execute(
6877 transaction : "AsyncTransaction" | None = None ,
6978 read_time : datetime .datetime | None = None ,
7079 explain_options : PipelineExplainOptions | None = None ,
71- index_mode : str | None = None ,
7280 additional_options : dict [str , Value | Constant ] = {},
7381 ) -> PipelineSnapshot [PipelineResult ]:
7482 """
@@ -87,10 +95,8 @@ async def execute(
8795 explain_options (Optional[:class:`~google.cloud.firestore_v1.query_profile.PipelineExplainOptions`]):
8896 Options to enable query profiling for this query. When set,
8997 explain_metrics will be available on the returned list.
90- index_mode (Optional[str]): Configures the pipeline to require a certain type of indexes to be present.
91- Firestore will reject the request if there is not appropiate indexes to serve the query.
9298 additional_options (Optional[dict[str, Value | Constant]]): Additional options to pass to the query.
93- These options will take precedence over method argument if there is a conflict (e.g. explain_options, index_mode )
99+ These options will take precedence over method argument if there is a conflict (e.g. explain_options)
94100 """
95101 kwargs = {k : v for k , v in locals ().items () if k != "self" }
96102 stream = AsyncPipelineStream (PipelineResult , self , ** kwargs )
@@ -103,7 +109,6 @@ def stream(
103109 read_time : datetime .datetime | None = None ,
104110 transaction : "AsyncTransaction" | None = None ,
105111 explain_options : PipelineExplainOptions | None = None ,
106- index_mode : str | None = None ,
107112 additional_options : dict [str , Value | Constant ] = {},
108113 ) -> AsyncPipelineStream [PipelineResult ]:
109114 """
@@ -122,10 +127,8 @@ def stream(
122127 explain_options (Optional[:class:`~google.cloud.firestore_v1.query_profile.PipelineExplainOptions`]):
123128 Options to enable query profiling for this query. When set,
124129 explain_metrics will be available on the returned generator.
125- index_mode (Optional[str]): Configures the pipeline to require a certain type of indexes to be present.
126- Firestore will reject the request if there is not appropiate indexes to serve the query.
127130 additional_options (Optional[dict[str, Value | Constant]]): Additional options to pass to the query.
128- These options will take precedence over method argument if there is a conflict (e.g. explain_options, index_mode )
131+ These options will take precedence over method argument if there is a conflict (e.g. explain_options)
129132 """
130133 kwargs = {k : v for k , v in locals ().items () if k != "self" }
131134 return AsyncPipelineStream (PipelineResult , self , ** kwargs )
0 commit comments