@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindHttpApi(binder(), CloudIdentityAuthenticationApi.class); }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindHttpApi(binder(), AuthenticationApi.class); }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindHttpApi(binder(), CloudIdentityAuthenticationApi.class); }
protected void bindTemporaryUrlKeyApi() { bindHttpApi(binder(), TemporaryUrlKeyApi.class); } }
@Override protected void configure() { // AuthenticationApi is used directly for filters and retry handlers, so let's bind it explicitly bindHttpApi(binder(), AuthenticationApi.class); }
@Override protected void configure() { super.configure(); bindHttpApi(binder(), AuthenticationApi.class); bindHttpApi(binder(), TempAuthApi.class); }
@Override public void configure() { bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), HttpClient.class); } });
@Override protected void configure() { // datacenter api is needed for obtaining zone ids bindHttpApi(binder(), DatacenterApi.class); bind(ImplicitLocationSupplier.class).to(OnlyLocationOrFirstZone.class).in(Scopes.SINGLETON); bind(ZoneIdToURISupplier.class).to(ZoneIdToURIFromDatacentersApi.class).in(Scopes.SINGLETON); bind(ZoneIdsSupplier.class).to(ZoneIdsFromZoneIdToURIKeySet.class).in(Scopes.SINGLETON); } }
@Override protected void configure() { bindHttpApi(binder(), AuthorizationApi.class); bind(CredentialType.class).toProvider(CredentialTypeFromPropertyOrDefault.class); bind(new TypeLiteral<Supplier<PrivateKey>>() {}).annotatedWith(Authorization.class).to(PrivateKeySupplier.class); bind(new TypeLiteral<Supplier<CertificateFingerprint>>() {}).annotatedWith(Authorization.class).to(CertificateFingerprintSupplier.class); }
@Override protected void configure() { bindHttpApi(binder(), AuthorizationApi.class); bind(CredentialType.class).toProvider(CredentialTypeFromPropertyOrDefault.class); bind(new TypeLiteral<Supplier<PrivateKey>>() {}).annotatedWith(Authorization.class).to(PrivateKeySupplier.class); bind(new TypeLiteral<Supplier<CertificateFingerprint>>() {}).annotatedWith(Authorization.class).to(CertificateFingerprintSupplier.class); }
@Override protected void configure() { super.configure(); bindHttpApi(binder(), CloudIdentityAuthenticationApi.class); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); // TODO: remove when references are gone bindHttpApi(binder(), HttpAsyncClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); // TODO: remove when references are gone bindHttpApi(binder(), HttpAsyncClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); // TODO: remove when references are gone bindHttpApi(binder(), HttpAsyncClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { // binding explicitly ensures singleton despite multiple linked bindings bind(SessionManager.class); bind(RedirectionRetryHandler.class).to(GetJobRedirectionRetryHandler.class); super.configure(); // for authentication filters bindHttpApi(binder(), SessionApi.class); bind(JavaUrlHttpCommandExecutorService.class).to(SillyRabbit200sAreForSuccess.class); }
@Override protected void configure() { // binding explicitly ensures singleton despite multiple linked bindings bind(SessionManager.class); bind(RedirectionRetryHandler.class).to(GetJobRedirectionRetryHandler.class); super.configure(); // for authentication filters bindHttpApi(binder(), SessionApi.class); bind(JavaUrlHttpCommandExecutorService.class).to(SillyRabbit200sAreForSuccess.class); }
@Override protected void configure() { // binding explicitly ensures singleton despite multiple linked bindings bind(SessionManager.class); bind(RedirectionRetryHandler.class).to(GetJobRedirectionRetryHandler.class); super.configure(); // for authentication filters bindHttpApi(binder(), SessionApi.class); bind(JavaUrlHttpCommandExecutorService.class).to(SillyRabbit200sAreForSuccess.class); }
@Override protected void configure() { super.configure(); bindHttpApi(binder(), UseApiToResolveProjectName.GetProject.class); bind(OAuthScopes.class).toInstance(ReadOrWriteScopes.create( // "https://www.googleapis.com/auth/compute.readonly", // "https://www.googleapis.com/auth/compute" // )); }
@Override protected void configure() { // binding explicitly ensures singleton despite multiple linked bindings bind(SessionManager.class); bind(RedirectionRetryHandler.class).to(GetJobRedirectionRetryHandler.class); super.configure(); // for authentication filters bindHttpApi(binder(), SessionApi.class); bind(JavaUrlHttpCommandExecutorService.class).to(SillyRabbit200sAreForSuccess.class); }