@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.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() { 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 bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.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() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("global")).to(GlobalOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("region")).to(RegionOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("zone")).to(ZoneOperationDonePredicate.class); bind(ImplicitLocationSupplier.class).to(FirstZone.class).in(Scopes.SINGLETON); super.configure(); }
@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 bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(GoogleComputeEngineErrorHandler.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(GoogleComputeEngineErrorHandler.class); }
@Override protected void configure() { bind(DateAdapter.class).to(Iso8601DateAdapter.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("global")).to(GlobalOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("region")).to(RegionOperationDonePredicate.class); bind(new TypeLiteral<Predicate<AtomicReference<Operation>>>() { }).annotatedWith(named("zone")).to(ZoneOperationDonePredicate.class); bind(ImplicitLocationSupplier.class).to(FirstZone.class).in(Scopes.SINGLETON); super.configure(); }