Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class {{ service.async_client_name }}:
Returns:
{{ service.async_client_name }}: The constructed client.
"""
return {{ service.client_name }}.from_service_account_info.__func__({{ service.async_client_name }}, info, *args, **kwargs) # 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)

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -114,7 +115,8 @@ class {{ service.async_client_name }}:
Returns:
{{ service.async_client_name }}: The constructed client.
"""
return {{ service.client_name }}.from_service_account_file.__func__({{ service.async_client_name }}, filename, *args, **kwargs) # type: ignore
sa_file_func = {{ service.client_name }}.from_service_account_file.__func__ # type: ignore
return sa_file_func({{ service.async_client_name }}, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -122,7 +123,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
AssetServiceAsyncClient: The constructed client.
"""
return AssetServiceClient.from_service_account_file.__func__(AssetServiceAsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = AssetServiceClient.from_service_account_file.__func__ # type: ignore
return sa_file_func(AssetServiceAsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -113,7 +114,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
IAMCredentialsAsyncClient: The constructed client.
"""
return IAMCredentialsClient.from_service_account_file.__func__(IAMCredentialsAsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = IAMCredentialsClient.from_service_account_file.__func__ # type: ignore
return sa_file_func(IAMCredentialsAsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -140,7 +141,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
EventarcAsyncClient: The constructed client.
"""
return EventarcClient.from_service_account_file.__func__(EventarcAsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = EventarcClient.from_service_account_file.__func__ # type: ignore
return sa_file_func(EventarcAsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -120,7 +121,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
ConfigServiceV2AsyncClient: The constructed client.
"""
return ConfigServiceV2Client.from_service_account_file.__func__(ConfigServiceV2AsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = ConfigServiceV2Client.from_service_account_file.__func__ # type: ignore
return sa_file_func(ConfigServiceV2AsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -105,7 +106,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
LoggingServiceV2AsyncClient: The constructed client.
"""
return LoggingServiceV2Client.from_service_account_file.__func__(LoggingServiceV2AsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = LoggingServiceV2Client.from_service_account_file.__func__ # type: ignore
return sa_file_func(LoggingServiceV2AsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -106,7 +107,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
MetricsServiceV2AsyncClient: The constructed client.
"""
return MetricsServiceV2Client.from_service_account_file.__func__(MetricsServiceV2AsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = MetricsServiceV2Client.from_service_account_file.__func__ # type: ignore
return sa_file_func(MetricsServiceV2AsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -120,7 +121,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
BaseConfigServiceV2AsyncClient: The constructed client.
"""
return BaseConfigServiceV2Client.from_service_account_file.__func__(BaseConfigServiceV2AsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = BaseConfigServiceV2Client.from_service_account_file.__func__ # type: ignore
return sa_file_func(BaseConfigServiceV2AsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -105,7 +106,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
LoggingServiceV2AsyncClient: The constructed client.
"""
return LoggingServiceV2Client.from_service_account_file.__func__(LoggingServiceV2AsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = LoggingServiceV2Client.from_service_account_file.__func__ # type: ignore
return sa_file_func(LoggingServiceV2AsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -106,7 +107,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
BaseMetricsServiceV2AsyncClient: The constructed client.
"""
return BaseMetricsServiceV2Client.from_service_account_file.__func__(BaseMetricsServiceV2AsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = BaseMetricsServiceV2Client.from_service_account_file.__func__ # type: ignore
return sa_file_func(BaseMetricsServiceV2AsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -130,7 +131,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
CloudRedisAsyncClient: The constructed client.
"""
return CloudRedisClient.from_service_account_file.__func__(CloudRedisAsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = CloudRedisClient.from_service_account_file.__func__ # type: ignore
return sa_file_func(CloudRedisAsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

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

@classmethod
def from_service_account_file(cls, filename: str, *args, **kwargs):
Expand All @@ -130,7 +131,8 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
Returns:
CloudRedisAsyncClient: The constructed client.
"""
return CloudRedisClient.from_service_account_file.__func__(CloudRedisAsyncClient, filename, *args, **kwargs) # type: ignore
sa_file_func = CloudRedisClient.from_service_account_file.__func__ # type: ignore
return sa_file_func(CloudRedisAsyncClient, filename, *args, **kwargs)

from_service_account_json = from_service_account_file

Expand Down
Loading