Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ class {{ service.async_client_name }}:
Returns:
{{ service.async_client_name }}: The constructed client.
"""
sa_info_func = {{ service.client_name }}.from_service_account_info.__func__ # type: ignore
sa_info_func = (
{{ service.client_name }}.from_service_account_info.__func__ # type: ignore
)
return sa_info_func({{ service.async_client_name }}, info, *args, **kwargs)
Comment thread
ohmayr marked this conversation as resolved.

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
AssetServiceAsyncClient: The constructed client.
"""
sa_info_func = AssetServiceClient.from_service_account_info.__func__ # type: ignore
sa_info_func = (
AssetServiceClient.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(AssetServiceAsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
IAMCredentialsAsyncClient: The constructed client.
"""
sa_info_func = IAMCredentialsClient.from_service_account_info.__func__ # type: ignore
sa_info_func = (
IAMCredentialsClient.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(IAMCredentialsAsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
EventarcAsyncClient: The constructed client.
"""
sa_info_func = EventarcClient.from_service_account_info.__func__ # type: ignore
sa_info_func = (
EventarcClient.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(EventarcAsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
ConfigServiceV2AsyncClient: The constructed client.
"""
sa_info_func = ConfigServiceV2Client.from_service_account_info.__func__ # type: ignore
sa_info_func = (
ConfigServiceV2Client.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(ConfigServiceV2AsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
LoggingServiceV2AsyncClient: The constructed client.
"""
sa_info_func = LoggingServiceV2Client.from_service_account_info.__func__ # type: ignore
sa_info_func = (
LoggingServiceV2Client.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(LoggingServiceV2AsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
MetricsServiceV2AsyncClient: The constructed client.
"""
sa_info_func = MetricsServiceV2Client.from_service_account_info.__func__ # type: ignore
sa_info_func = (
MetricsServiceV2Client.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(MetricsServiceV2AsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
BaseConfigServiceV2AsyncClient: The constructed client.
"""
sa_info_func = BaseConfigServiceV2Client.from_service_account_info.__func__ # type: ignore
sa_info_func = (
BaseConfigServiceV2Client.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(BaseConfigServiceV2AsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
LoggingServiceV2AsyncClient: The constructed client.
"""
sa_info_func = LoggingServiceV2Client.from_service_account_info.__func__ # type: ignore
sa_info_func = (
LoggingServiceV2Client.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(LoggingServiceV2AsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
BaseMetricsServiceV2AsyncClient: The constructed client.
"""
sa_info_func = BaseMetricsServiceV2Client.from_service_account_info.__func__ # type: ignore
sa_info_func = (
BaseMetricsServiceV2Client.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(BaseMetricsServiceV2AsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
CloudRedisAsyncClient: The constructed client.
"""
sa_info_func = CloudRedisClient.from_service_account_info.__func__ # type: ignore
sa_info_func = (
CloudRedisClient.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(CloudRedisAsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
Returns:
CloudRedisAsyncClient: The constructed client.
"""
sa_info_func = CloudRedisClient.from_service_account_info.__func__ # type: ignore
sa_info_func = (
CloudRedisClient.from_service_account_info.__func__ # type: ignore
)
return sa_info_func(CloudRedisAsyncClient, info, *args, **kwargs)

@classmethod
Expand Down
Loading