/external/python/google-auth-library-python/google/auth/ |
D | _default_async.py | 31 def load_credentials_from_file(filename, scopes=None, quota_project_id=None): argument 83 if quota_project_id: 84 credentials = credentials.with_quota_project(quota_project_id) 85 if not credentials.quota_project_id: 95 ).with_quota_project(quota_project_id) 111 def _get_gcloud_sdk_credentials(quota_project_id=None): argument 122 credentials_filename, quota_project_id=quota_project_id 131 def _get_explicit_environ_credentials(quota_project_id=None): argument 143 return _get_gcloud_sdk_credentials(quota_project_id=quota_project_id) 147 os.environ[environment_vars.CREDENTIALS], quota_project_id=quota_project_id [all …]
|
D | _default.py | 77 filename, scopes=None, default_scopes=None, quota_project_id=None, request=None argument 138 if quota_project_id: 139 credentials = credentials.with_quota_project(quota_project_id) 140 if not credentials.quota_project_id: 155 if quota_project_id: 156 credentials = credentials.with_quota_project(quota_project_id) 167 if quota_project_id: 168 credentials = credentials.with_quota_project(quota_project_id) 180 def _get_gcloud_sdk_credentials(quota_project_id=None): argument 194 credentials_filename, quota_project_id=quota_project_id [all …]
|
D | impersonated_credentials.py | 192 quota_project_id=None, argument 237 self._quota_project_id = quota_project_id 313 def with_quota_project(self, quota_project_id): argument 320 quota_project_id=quota_project_id, 335 quota_project_id=None, argument 355 self._quota_project_id = quota_project_id 362 quota_project_id=self._quota_project_id, 370 quota_project_id=self._quota_project_id, 378 quota_project_id=self._quota_project_id, 382 def with_quota_project(self, quota_project_id): argument [all …]
|
D | app_engine.py | 94 quota_project_id=None, argument 123 self._quota_project_id = quota_project_id 156 quota_project_id=self.quota_project_id, 160 def with_quota_project(self, quota_project_id): argument 164 quota_project_id=quota_project_id,
|
D | jwt.py | 363 quota_project_id=None, argument 385 self._quota_project_id = quota_project_id 507 quota_project_id=self._quota_project_id, 511 def with_quota_project(self, quota_project_id): argument 518 quota_project_id=quota_project_id, 599 quota_project_id=None, argument 621 self._quota_project_id = quota_project_id 736 quota_project_id=self._quota_project_id, 740 def with_quota_project(self, quota_project_id): argument 748 quota_project_id=quota_project_id,
|
D | external_account.py | 74 quota_project_id=None, argument 112 self._quota_project_id = quota_project_id 248 quota_project_id=self._quota_project_id, 348 def with_quota_project(self, quota_project_id): argument 358 quota_project_id=quota_project_id, 391 quota_project_id=self._quota_project_id, 413 quota_project_id=self._quota_project_id,
|
D | credentials.py | 81 def quota_project_id(self): member in Credentials 112 if self.quota_project_id: 113 headers["x-goog-user-project"] = self.quota_project_id 140 def with_quota_project(self, quota_project_id): argument
|
D | downscoped.py | 437 self, source_credentials, credential_access_boundary, quota_project_id=None argument 466 self._quota_project_id = quota_project_id 496 def with_quota_project(self, quota_project_id): argument 500 quota_project_id=quota_project_id,
|
D | identity_pool.py | 62 quota_project_id=None, argument 127 quota_project_id=quota_project_id, 268 quota_project_id=info.get("quota_project_id"),
|
/external/python/google-auth-library-python/google/auth/compute_engine/ |
D | credentials.py | 57 quota_project_id=None, argument 74 self._quota_project_id = quota_project_id 133 def with_quota_project(self, quota_project_id): argument 136 quota_project_id=quota_project_id, 149 quota_project_id=self._quota_project_id, 180 quota_project_id=None, argument 214 self._quota_project_id = quota_project_id 267 quota_project_id=self._quota_project_id, 278 quota_project_id=self._quota_project_id, 282 def with_quota_project(self, quota_project_id): argument [all …]
|
/external/python/google-auth-library-python/google/oauth2/ |
D | service_account.py | 133 quota_project_id=None, argument 170 self._quota_project_id = quota_project_id 272 quota_project_id=self._quota_project_id, 295 quota_project_id=self._quota_project_id, 318 quota_project_id=self._quota_project_id, 346 quota_project_id=self._quota_project_id, 352 def with_quota_project(self, quota_project_id): argument 362 quota_project_id=quota_project_id, 510 quota_project_id=None, argument 533 self._quota_project_id = quota_project_id [all …]
|
D | credentials.py | 77 quota_project_id=None, argument 131 self._quota_project_id = quota_project_id 241 def with_quota_project(self, quota_project_id): argument 252 quota_project_id=quota_project_id, 379 quota_project_id=info.get("quota_project_id"), # may not exist 452 def __init__(self, account=None, quota_project_id=None): argument 455 self._quota_project_id = quota_project_id 467 return self.__class__(account=account, quota_project_id=self._quota_project_id) 470 def with_quota_project(self, quota_project_id): argument 471 return self.__class__(account=self._account, quota_project_id=quota_project_id)
|
/external/python/google-api-python-client/googleapiclient/ |
D | _auth.py | 41 def credentials_from_file(filename, scopes=None, quota_project_id=None): argument 44 … google.auth.load_credentials_from_file(filename, scopes=scopes, quota_project_id=quota_project_id) 51 def default_credentials(scopes=None, quota_project_id=None): argument 54 credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id) 57 if scopes is not None or quota_project_id is not None:
|
/external/python/google-auth-library-python/tests_async/ |
D | test__default_async.py | 126 test_default.AUTHORIZED_USER_CLOUD_SDK_FILE, quota_project_id="project-foo" 131 assert credentials.quota_project_id == "project-foo" 170 def test__get_explicit_environ_credentials(load, quota_project_id, monkeypatch): argument 174 quota_project_id=quota_project_id 179 load.assert_called_with("filename", quota_project_id=quota_project_id) 199 get_gcloud_creds, get_adc_path, quota_project_id, monkeypatch argument 205 _default._get_explicit_environ_credentials(quota_project_id=quota_project_id) 209 get_gcloud_creds.assert_called_with(quota_project_id=quota_project_id) 217 def test__get_gcloud_sdk_credentials(get_adc_path, load, quota_project_id): argument 221 quota_project_id=quota_project_id [all …]
|
D | test_jwt_async.py | 136 quota_project_id = "project-foo" 138 new_credentials = self.credentials.with_quota_project(quota_project_id) 144 assert new_credentials._quota_project_id == quota_project_id 297 quota_project_id = "project-foo" 298 new_credentials = self.credentials.with_quota_project(quota_project_id) 304 assert new_credentials._quota_project_id == quota_project_id
|
/external/python/google-auth-library-python/tests/ |
D | test__default.py | 237 AUTHORIZED_USER_CLOUD_SDK_FILE, quota_project_id="project-foo" 242 assert credentials.quota_project_id == "project-foo" 262 SERVICE_ACCOUNT_FILE, quota_project_id="project-foo" 266 assert credentials.quota_project_id == "project-foo" 396 str(config_file), quota_project_id="project-foo" 402 assert credentials.quota_project_id == "project-foo" 442 def test__get_explicit_environ_credentials(load, quota_project_id, monkeypatch): argument 446 quota_project_id=quota_project_id 451 load.assert_called_with("filename", quota_project_id=quota_project_id) 471 get_gcloud_creds, get_adc_path, quota_project_id, monkeypatch argument [all …]
|
D | test_identity_pool.py | 161 quota_project_id=None, argument 256 assert credentials.quota_project_id == quota_project_id 267 quota_project_id=None, argument 282 quota_project_id=quota_project_id, 313 quota_project_id=QUOTA_PROJECT_ID, 338 quota_project_id=None, 364 quota_project_id=None, 394 quota_project_id=QUOTA_PROJECT_ID, 420 quota_project_id=None, 447 quota_project_id=None, [all …]
|
D | test_external_account.py | 79 quota_project_id=None, argument 92 quota_project_id=quota_project_id, 165 quota_project_id=None, argument 178 quota_project_id=quota_project_id, 188 quota_project_id=None, argument 202 quota_project_id=quota_project_id, 290 assert not credentials.quota_project_id 366 quota_project_id=self.QUOTA_PROJECT_ID, 387 quota_project_id=self.QUOTA_PROJECT_ID, 397 assert not credentials.quota_project_id [all …]
|
D | test_aws.py | 719 quota_project_id=None, argument 732 quota_project_id=quota_project_id, 802 quota_project_id=QUOTA_PROJECT_ID, 826 quota_project_id=None, 855 quota_project_id=QUOTA_PROJECT_ID, 880 quota_project_id=None, 1248 quota_project_id=QUOTA_PROJECT_ID, 1262 assert credentials.quota_project_id == QUOTA_PROJECT_ID 1304 quota_project_id=QUOTA_PROJECT_ID, 1318 assert credentials.quota_project_id == QUOTA_PROJECT_ID [all …]
|
/external/python/python-api-core/google/api_core/ |
D | client_options.py | 81 quota_project_id=None, argument 92 self.quota_project_id = quota_project_id
|
D | grpc_helpers.py | 193 quota_project_id=None, argument 240 if quota_project_id and isinstance( 243 credentials = credentials.with_quota_project(quota_project_id) 268 quota_project_id=None, argument 308 quota_project_id=quota_project_id,
|
/external/python/python-api-core/google/api_core/operations_v1/transports/ |
D | base.py | 55 quota_project_id: Optional[str] = None, 103 credentials_file, **scopes_kwargs, quota_project_id=quota_project_id 108 **scopes_kwargs, quota_project_id=quota_project_id
|
/external/python/python-api-core/tests/unit/ |
D | test_client_options.py | 33 quota_project_id="quote-proj", 43 assert options.quota_project_id == "quote-proj" 91 assert options.quota_project_id == "quote-proj"
|
/external/python/python-api-core/tests/unit/operations_v1/ |
D | test_operations_rest_client.py | 211 quota_project_id=None, 228 quota_project_id=None, 245 quota_project_id=None, 264 options = client_options.ClientOptions(quota_project_id="octopus") 274 quota_project_id="octopus", 332 quota_project_id=None, 366 quota_project_id=None, 388 quota_project_id=None, 412 quota_project_id=None, 436 quota_project_id=None, [all …]
|
/external/python/google-api-python-client/tests/ |
D | test__auth.py | 53 "credentials.json", scopes=None, quota_project_id=None 61 default.assert_called_once_with(scopes=["1", "2"], quota_project_id=None) 67 credentials = _auth.default_credentials(quota_project_id="my-project") 69 default.assert_called_once_with(scopes=None, quota_project_id="my-project") 134 scopes=["1", "2"], quota_project_id="my-project"
|