@@ -54,14 +54,58 @@ class FirestoreAdminAsyncClient:
5454 DEFAULT_ENDPOINT = FirestoreAdminClient .DEFAULT_ENDPOINT
5555 DEFAULT_MTLS_ENDPOINT = FirestoreAdminClient .DEFAULT_MTLS_ENDPOINT
5656
57+ collection_group_path = staticmethod (FirestoreAdminClient .collection_group_path )
58+ parse_collection_group_path = staticmethod (
59+ FirestoreAdminClient .parse_collection_group_path
60+ )
61+ database_path = staticmethod (FirestoreAdminClient .database_path )
62+ parse_database_path = staticmethod (FirestoreAdminClient .parse_database_path )
5763 field_path = staticmethod (FirestoreAdminClient .field_path )
5864 parse_field_path = staticmethod (FirestoreAdminClient .parse_field_path )
5965 index_path = staticmethod (FirestoreAdminClient .index_path )
6066 parse_index_path = staticmethod (FirestoreAdminClient .parse_index_path )
6167
68+ common_billing_account_path = staticmethod (
69+ FirestoreAdminClient .common_billing_account_path
70+ )
71+ parse_common_billing_account_path = staticmethod (
72+ FirestoreAdminClient .parse_common_billing_account_path
73+ )
74+
75+ common_folder_path = staticmethod (FirestoreAdminClient .common_folder_path )
76+ parse_common_folder_path = staticmethod (
77+ FirestoreAdminClient .parse_common_folder_path
78+ )
79+
80+ common_organization_path = staticmethod (
81+ FirestoreAdminClient .common_organization_path
82+ )
83+ parse_common_organization_path = staticmethod (
84+ FirestoreAdminClient .parse_common_organization_path
85+ )
86+
87+ common_project_path = staticmethod (FirestoreAdminClient .common_project_path )
88+ parse_common_project_path = staticmethod (
89+ FirestoreAdminClient .parse_common_project_path
90+ )
91+
92+ common_location_path = staticmethod (FirestoreAdminClient .common_location_path )
93+ parse_common_location_path = staticmethod (
94+ FirestoreAdminClient .parse_common_location_path
95+ )
96+
6297 from_service_account_file = FirestoreAdminClient .from_service_account_file
6398 from_service_account_json = from_service_account_file
6499
100+ @property
101+ def transport (self ) -> FirestoreAdminTransport :
102+ """Return the transport used by the client instance.
103+
104+ Returns:
105+ FirestoreAdminTransport: The transport used by the client instance.
106+ """
107+ return self ._client .transport
108+
65109 get_transport_class = functools .partial (
66110 type (FirestoreAdminClient ).get_transport_class , type (FirestoreAdminClient )
67111 )
@@ -166,7 +210,8 @@ async def create_index(
166210 # Create or coerce a protobuf request object.
167211 # Sanity check: If we got a request object, we should *not* have
168212 # gotten any keyword arguments that map to the request.
169- if request is not None and any ([parent , index ]):
213+ has_flattened_params = any ([parent , index ])
214+ if request is not None and has_flattened_params :
170215 raise ValueError (
171216 "If the `request` argument is set, then none of "
172217 "the individual field arguments should be set."
@@ -250,7 +295,8 @@ async def list_indexes(
250295 # Create or coerce a protobuf request object.
251296 # Sanity check: If we got a request object, we should *not* have
252297 # gotten any keyword arguments that map to the request.
253- if request is not None and any ([parent ]):
298+ has_flattened_params = any ([parent ])
299+ if request is not None and has_flattened_params :
254300 raise ValueError (
255301 "If the `request` argument is set, then none of "
256302 "the individual field arguments should be set."
@@ -338,7 +384,8 @@ async def get_index(
338384 # Create or coerce a protobuf request object.
339385 # Sanity check: If we got a request object, we should *not* have
340386 # gotten any keyword arguments that map to the request.
341- if request is not None and any ([name ]):
387+ has_flattened_params = any ([name ])
388+ if request is not None and has_flattened_params :
342389 raise ValueError (
343390 "If the `request` argument is set, then none of "
344391 "the individual field arguments should be set."
@@ -413,7 +460,8 @@ async def delete_index(
413460 # Create or coerce a protobuf request object.
414461 # Sanity check: If we got a request object, we should *not* have
415462 # gotten any keyword arguments that map to the request.
416- if request is not None and any ([name ]):
463+ has_flattened_params = any ([name ])
464+ if request is not None and has_flattened_params :
417465 raise ValueError (
418466 "If the `request` argument is set, then none of "
419467 "the individual field arguments should be set."
@@ -496,7 +544,8 @@ async def get_field(
496544 # Create or coerce a protobuf request object.
497545 # Sanity check: If we got a request object, we should *not* have
498546 # gotten any keyword arguments that map to the request.
499- if request is not None and any ([name ]):
547+ has_flattened_params = any ([name ])
548+ if request is not None and has_flattened_params :
500549 raise ValueError (
501550 "If the `request` argument is set, then none of "
502551 "the individual field arguments should be set."
@@ -598,7 +647,8 @@ async def update_field(
598647 # Create or coerce a protobuf request object.
599648 # Sanity check: If we got a request object, we should *not* have
600649 # gotten any keyword arguments that map to the request.
601- if request is not None and any ([field ]):
650+ has_flattened_params = any ([field ])
651+ if request is not None and has_flattened_params :
602652 raise ValueError (
603653 "If the `request` argument is set, then none of "
604654 "the individual field arguments should be set."
@@ -689,7 +739,8 @@ async def list_fields(
689739 # Create or coerce a protobuf request object.
690740 # Sanity check: If we got a request object, we should *not* have
691741 # gotten any keyword arguments that map to the request.
692- if request is not None and any ([parent ]):
742+ has_flattened_params = any ([parent ])
743+ if request is not None and has_flattened_params :
693744 raise ValueError (
694745 "If the `request` argument is set, then none of "
695746 "the individual field arguments should be set."
@@ -790,7 +841,8 @@ async def export_documents(
790841 # Create or coerce a protobuf request object.
791842 # Sanity check: If we got a request object, we should *not* have
792843 # gotten any keyword arguments that map to the request.
793- if request is not None and any ([name ]):
844+ has_flattened_params = any ([name ])
845+ if request is not None and has_flattened_params :
794846 raise ValueError (
795847 "If the `request` argument is set, then none of "
796848 "the individual field arguments should be set."
@@ -890,7 +942,8 @@ async def import_documents(
890942 # Create or coerce a protobuf request object.
891943 # Sanity check: If we got a request object, we should *not* have
892944 # gotten any keyword arguments that map to the request.
893- if request is not None and any ([name ]):
945+ has_flattened_params = any ([name ])
946+ if request is not None and has_flattened_params :
894947 raise ValueError (
895948 "If the `request` argument is set, then none of "
896949 "the individual field arguments should be set."
0 commit comments