3232from google .oauth2 import _client
3333
3434
35- class Credentials (credentials .ReadOnlyScoped , credentials .Credentials ):
35+ class Credentials (credentials .ReadOnlyScoped , credentials .CredentialsWithQuotaProject ):
3636 """Compute Engine Credentials.
3737
3838 These credentials use the Google Compute Engine metadata server to obtain
@@ -118,7 +118,7 @@ def requires_scopes(self):
118118 """False: Compute Engine credentials can not be scoped."""
119119 return False
120120
121- @_helpers .copy_docstring (credentials .Credentials )
121+ @_helpers .copy_docstring (credentials .CredentialsWithQuotaProject )
122122 def with_quota_project (self , quota_project_id ):
123123 return self .__class__ (
124124 service_account_email = self ._service_account_email ,
@@ -130,7 +130,7 @@ def with_quota_project(self, quota_project_id):
130130_DEFAULT_TOKEN_URI = "https://www.googleapis.com/oauth2/v4/token"
131131
132132
133- class IDTokenCredentials (credentials .Credentials , credentials .Signing ):
133+ class IDTokenCredentials (credentials .CredentialsWithQuotaProject , credentials .Signing ):
134134 """Open ID Connect ID Token-based service account credentials.
135135
136136 These credentials relies on the default service account of a GCE instance.
@@ -254,7 +254,7 @@ def with_target_audience(self, target_audience):
254254 quota_project_id = self ._quota_project_id ,
255255 )
256256
257- @_helpers .copy_docstring (credentials .Credentials )
257+ @_helpers .copy_docstring (credentials .CredentialsWithQuotaProject )
258258 def with_quota_project (self , quota_project_id ):
259259
260260 # since the signer is already instantiated,
0 commit comments