File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
oauth2_http/java/com/google/auth/oauth2 Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 4141import com .google .api .client .http .HttpStatusCodes ;
4242import com .google .api .client .json .JsonObjectParser ;
4343import com .google .api .client .util .GenericData ;
44- import com .google .api .core .ObsoleteApi ;
4544import com .google .auth .CredentialTypeForMetrics ;
4645import com .google .auth .Credentials ;
4746import com .google .auth .Retryable ;
@@ -627,18 +626,13 @@ public static String getUniverseDomainUrl() {
627626 + "/computeMetadata/v1/universe/universe-domain" ;
628627 }
629628
630- /**
631- * This method is marked as Obsolete. Prefer to use {@link #getDefaultServiceAccount()} to
632- * retrieve the default service account.
633- */
634- @ ObsoleteApi ("Prefer getDefaultServiceAccountUrl() to retrieve the default service account" )
635629 public static String getServiceAccountsUrl () {
636630 return getMetadataServerUrl (DefaultCredentialsProvider .DEFAULT )
637631 + "/computeMetadata/v1/instance/service-accounts/?recursive=true" ;
638632 }
639633
640634 /** Url to retrieve the default service account entry from the Metadata Server. */
641- public static String getDefaultServiceAccountUrl () {
635+ static String getDefaultServiceAccountUrl () {
642636 return getMetadataServerUrl (DefaultCredentialsProvider .DEFAULT )
643637 + "/computeMetadata/v1/instance/service-accounts/default/email" ;
644638 }
You can’t perform that action at this time.
0 commit comments