Home
last modified time | relevance | path

Searched refs:GoogleCredentials (Results 1 – 25 of 39) sorted by relevance

12

/external/autotest/site_utils/
Dpubsub_utils_unittest.py19 from oauth2client.client import GoogleCredentials
100 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
102 GoogleCredentials.from_stream(
113 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
115 credentials = self.mox.CreateMock(GoogleCredentials)
116 GoogleCredentials.from_stream(
137 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
139 credentials = self.mox.CreateMock(GoogleCredentials)
140 GoogleCredentials.from_stream(
Dpubsub_utils.py19 from oauth2client.client import GoogleCredentials
56 credential = GoogleCredentials.from_stream(self.credential_file)
/external/opencensus-java/exporters/stats/stackdriver/src/test/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverStatsExporterTest.java23 import com.google.auth.oauth2.GoogleCredentials;
41 GoogleCredentials.newBuilder().setAccessToken(new AccessToken("fake", new Date(100))).build();
89 GoogleCredentials.newBuilder().build(), null, ONE_SECOND); in createWithNullProjectId()
98 GoogleCredentials.newBuilder().build(), PROJECT_ID, null); in createWithNullDuration()
107 GoogleCredentials.newBuilder().build(), PROJECT_ID, NEG_ONE_SECOND); in createWithNegativeDuration()
DStackdriverStatsConfigurationTest.java24 import com.google.auth.oauth2.GoogleCredentials;
36 GoogleCredentials.newBuilder().setAccessToken(new AccessToken("fake", new Date(100))).build();
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverExporter.java20 import com.google.auth.oauth2.GoogleCredentials;
85 .setCredentials(GoogleCredentials.getApplicationDefault()) in createAndRegisterWithProjectId()
111 .setCredentials(GoogleCredentials.getApplicationDefault()) in createAndRegister()
DStackdriverTraceExporter.java22 import com.google.auth.oauth2.GoogleCredentials;
88 credentials != null ? credentials : GoogleCredentials.getApplicationDefault(), in createAndRegister()
/external/python/oauth2client/samples/
Dcall_compute_service.py9 from oauth2client.client import GoogleCredentials
16 credentials = GoogleCredentials.get_application_default()
/external/python/oauth2client/samples/googleappengine/
Dcall_compute_service_from_gae.py7 from oauth2client.client import GoogleCredentials
15 credentials = GoogleCredentials.get_application_default()
/external/python/oauth2client/scripts/
Drun_gce_system_tests.py23 from oauth2client.client import GoogleCredentials
30 default_creds = GoogleCredentials.get_application_default()
Drun_system_tests.py87 credentials = client.GoogleCredentials(
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverTraceConfigurationTest.java23 import com.google.auth.oauth2.GoogleCredentials;
34 GoogleCredentials.newBuilder().setAccessToken(new AccessToken("fake", new Date(100))).build();
/external/perfetto/infra/ci/
Dcommon_utils.py22 from oauth2client.client import GoogleCredentials
74 creds = GoogleCredentials.get_application_default().create_scoped(SCOPES)
/external/autotest/server/cros/cfm/utils/
Dbond_http_api.py12 from oauth2client.client import GoogleCredentials
179 return GoogleCredentials.from_stream(_SERVICE_CREDS_FILE)
/external/tensorflow/tensorflow/python/distribute/cluster_resolver/
Dgce_cluster_resolver.py29 from oauth2client.client import GoogleCredentials # pylint: disable=g-import-not-at-top
117 self._credentials = GoogleCredentials.get_application_default()
/external/grpc-grpc/tools/gcp/utils/
Dbig_query_utils.py23 from oauth2client.client import GoogleCredentials
33 creds = GoogleCredentials.get_application_default()
/external/rust/crates/grpcio-sys/grpc/tools/gcp/utils/
Dbig_query_utils.py25 from oauth2client.client import GoogleCredentials
35 creds = GoogleCredentials.get_application_default()
/external/protobuf/benchmarks/util/
Dbig_query_utils.py11 from oauth2client.client import GoogleCredentials
21 creds = GoogleCredentials.get_application_default()
/external/perfetto/infra/ci/worker/
Dartifacts_uploader.py31 from oauth2client.client import GoogleCredentials
47 creds = GoogleCredentials.get_application_default().create_scoped(scopes)
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/
DGoogleDefaultChannelBuilder.java19 import com.google.auth.oauth2.GoogleCredentials;
85 credentials = MoreCallCredentials.from(GoogleCredentials.getApplicationDefault()); in build()
/external/python/oauth2client/tests/
Dtest_client.py285 self.assertIsInstance(credentials, client.GoogleCredentials)
295 return client.GoogleCredentials(None, None, None, None,
308 @mock.patch.object(client.GoogleCredentials,
311 @mock.patch.object(client.GoogleCredentials,
319 credentials = client.GoogleCredentials.get_application_default()
325 @mock.patch.object(client.GoogleCredentials,
328 @mock.patch.object(client.GoogleCredentials,
337 credentials = client.GoogleCredentials.get_application_default()
620 credentials = client.GoogleCredentials.get_application_default()
644 credentials = client.GoogleCredentials.get_application_default()
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_implementations_test.py42 creds = oauth2client_client.GoogleCredentials(
/external/oss-fuzz/infra/build/functions/
Dbuild_project.py34 from oauth2client.client import GoogleCredentials
413 credentials = GoogleCredentials.get_application_default()
/external/python/google-api-python-client/googleapiclient/
D_auth.py47 return oauth2client.client.GoogleCredentials.get_application_default()
/external/python/oauth2client/oauth2client/contrib/
Ddevshell.py96 class DevshellCredentials(client.GoogleCredentials):
/external/grpc-grpc-java/auth/src/test/java/io/grpc/auth/
DGoogleAuthLibraryCallCredentialsTest.java34 import com.google.auth.oauth2.GoogleCredentials;
272 final Credentials credentials = GoogleCredentials.create(token); in googleCredential_privacyAndIntegrityAllowed()
290 final Credentials credentials = GoogleCredentials.create(token); in googleCredential_integrityDenied()

12