Home
last modified time | relevance | path

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

12

/external/autotest/site_utils/
Dpubsub_utils_unittest.py16 from oauth2client.client import GoogleCredentials
97 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
99 GoogleCredentials.from_stream(
110 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
112 credentials = self.mox.CreateMock(GoogleCredentials)
113 GoogleCredentials.from_stream(
134 self.mox.StubOutWithMock(GoogleCredentials, 'from_stream')
136 credentials = self.mox.CreateMock(GoogleCredentials)
137 GoogleCredentials.from_stream(
Dpubsub_utils.py18 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();
DStackdriverV2ExporterHandlerProtoTest.java28 import com.google.auth.oauth2.GoogleCredentials;
70 GoogleCredentials.newBuilder().setAccessToken(new AccessToken("fake", new Date(100))).build();
/external/autotest/server/cros/cfm/utils/
Dbond_http_api.py12 from oauth2client.client import GoogleCredentials
159 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
94 self._credentials = GoogleCredentials.get_application_default()
Dtpu_cluster_resolver.py42 from oauth2client.client import GoogleCredentials # pylint: disable=g-import-not-at-top
85 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/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-java/alts/src/main/java/io/grpc/alts/
DGoogleDefaultChannelBuilder.java21 import com.google.auth.oauth2.GoogleCredentials;
117 credentials = MoreCallCredentials.from(GoogleCredentials.getApplicationDefault()); in build()
/external/grpc-grpc-java/auth/src/test/java/io/grpc/auth/
DGoogleAuthLibraryCallCredentialsTest.java34 import com.google.auth.oauth2.GoogleCredentials;
278 final Credentials credentials = GoogleCredentials.create(token); in googleCredential_privacyAndIntegrityAllowed()
298 final Credentials credentials = GoogleCredentials.create(token); in googleCredential_integrityDenied()
317 final Credentials credentials = GoogleCredentials.create(token); in googleCredential_nullSecurityDenied()
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_implementations_test.py42 creds = oauth2client_client.GoogleCredentials(
/external/python/google-api-python-client/googleapiclient/
D_auth.py45 return oauth2client.client.GoogleCredentials.get_application_default()
/external/python/oauth2client/oauth2client/contrib/
Ddevshell.py96 class DevshellCredentials(client.GoogleCredentials):
/external/python/oauth2client/oauth2client/
Dclient.py1065 class GoogleCredentials(OAuth2Credentials): class
1118 super(GoogleCredentials, self).__init__(
1288 return GoogleCredentials._get_implicit_credentials()
1422 return GoogleCredentials(
1461 class AssertionCredentials(GoogleCredentials):
/external/python/google-api-python-client/tests/
Dtest__auth.py108 credentials = mock.Mock(spec=oauth2client.client.GoogleCredentials)
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverStatsExporter.java26 import com.google.auth.oauth2.GoogleCredentials;

12