Home
last modified time | relevance | path

Searched refs:quota_project_id (Results 1 – 25 of 52) sorted by relevance

123

/external/python/google-auth-library-python/google/auth/
D_default_async.py31 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.py77 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 …]
Dimpersonated_credentials.py192 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 …]
Dapp_engine.py94 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,
Djwt.py363 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,
Dexternal_account.py74 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,
Dcredentials.py81 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
Ddownscoped.py437 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,
Didentity_pool.py62 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/
Dcredentials.py57 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/
Dservice_account.py133 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 …]
Dcredentials.py77 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.py41 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/
Dtest__default_async.py126 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 …]
Dtest_jwt_async.py136 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/
Dtest__default.py237 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 …]
Dtest_identity_pool.py161 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 …]
Dtest_external_account.py79 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 …]
Dtest_aws.py719 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/
Dclient_options.py81 quota_project_id=None, argument
92 self.quota_project_id = quota_project_id
Dgrpc_helpers.py193 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/
Dbase.py55 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/
Dtest_client_options.py33 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/
Dtest_operations_rest_client.py211 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/
Dtest__auth.py53 "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"

123