> @@ -78,6 +93,20 @@ protected void configure() {
> .put(FirewallOptions.class, new FirewallOptionsTypeAdapter())
> .put(RouteOptions.class, new RouteOptionsTypeAdapter())
> .put(Rule.class, new RuleTypeAdapter())
> + .put(BackendServiceOptions.class, new
> BackendServiceOptionsTypeAdapter())
> + .put(BackendService.Backend.class, new BackendTypeAdapter())
> + .put(UrlMapOptions.class, new UrlMapOptionsTypeAdapter())
> + .put(UrlMap.HostRule.class, new HostRuleTypeAdapter())
> + .put(UrlMap.PathMatcher.class, new PathMatcherTypeAdapter())
> + .put(UrlMap.UrlMapTest.class, new TestTypeAdapter())
> + .put(UrlMap.PathRule.class, new PathRuleTypeAdapter())
> + .put(UrlMapValidateResult.class, new
> UrlMapValidateResultTypeAdapter())
> + .put(ResourceViewOptions.class, new
> ResourceViewOptionsTypeAdapter())
> + .put(ResourceView.class, new ResourceViewTypeAdapter())
> + .put(new TypeLiteral<ListPage<ResourceView>>() {}.getType(),
> + new ListPageResourceViewTypeAdapter())
> + .put(new TypeLiteral<ListPage<URI>>() {}.getType(),
I believe the handcrafted serialization was because Gson will serialize an
empty ImmutableSet to an array of 4 nulls. This is input the GCE servers are
unable to handle if I remember correctly. This also follows the structure of
the Firewall / FirewallRule code that is currently in the repo.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/38/files#r18072315