Package org.jclouds.googlecomputeengine.options

Examples of org.jclouds.googlecomputeengine.options.RouteOptions


   /**
    * {@inheritDoc}
    */
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
      RouteOptions options = (RouteOptions) checkNotNull(postParams.get("options"), "routeOptions");
      String name = (String) checkNotNull(postParams.get("name"), "name");
      URI network = (URI) checkNotNull(postParams.get("network"), "network");
      options.name(name);
      options.network(network);
      return bindToRequest(request, options);
   }
View Full Code Here


   public void testInsertRoute() {
      assertGlobalOperationDoneSucessfully(api.getNetworkApiForProject(userProject.get()).createInIPv4Range
              (ROUTE_NETWORK_NAME, IPV4_RANGE), TIME_WAIT);
      assertGlobalOperationDoneSucessfully(api().createInNetwork(ROUTE_NAME,
              getNetworkUrl(userProject.get(), ROUTE_NETWORK_NAME),
              new RouteOptions().addTag("footag")
                      .addTag("bartag")
                      .description("RouteApi Live Test")
                      .destRange(DEST_RANGE)
                      .priority(1000)
                      .nextHopGateway(getGatewayUrl(userProject.get(), DEFAULT_GATEWAY_NAME))),
View Full Code Here

              TOKEN_RESPONSE, insert,
              insertRouteResponse).getRouteApiForProject("myproject");

      assertEquals(api.createInNetwork("default-route-c99ebfbed0e1f375",
              URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/networks/default"),
              new RouteOptions().addTag("fooTag")
                      .addTag("barTag")
                      .description("Default route to the virtual network.")
              .destRange("10.240.0.0/16")
              .priority(1000)
              .nextHopNetwork(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/networks/default"))
View Full Code Here

   public void testInsertRoute() {
      assertGlobalOperationDoneSucessfully(api.getNetworkApiForProject(userProject.get()).createInIPv4Range
              (ROUTE_NETWORK_NAME, IPV4_RANGE), TIME_WAIT);
      assertGlobalOperationDoneSucessfully(api().createInNetwork(ROUTE_NAME,
              getNetworkUrl(userProject.get(), ROUTE_NETWORK_NAME),
              new RouteOptions().addTag("footag")
                      .addTag("bartag")
                      .description("RouteApi Live Test")
                      .destRange(DEST_RANGE)
                      .priority(1000)
                      .nextHopGateway(getGatewayUrl(userProject.get(), DEFAULT_GATEWAY_NAME))),
View Full Code Here

              TOKEN_RESPONSE, insert,
              insertRouteResponse).getRouteApiForProject("myproject");

      assertEquals(api.createInNetwork("default-route-c99ebfbed0e1f375",
              URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/networks/default"),
              new RouteOptions().addTag("fooTag")
                      .addTag("barTag")
                      .description("Default route to the virtual network.")
              .destRange("10.240.0.0/16")
              .priority(1000)
              .nextHopNetwork(URI.create("https://www.googleapis.com/compute/v1/projects/myproject/global/networks/default"))
View Full Code Here

   /**
    * {@inheritDoc}
    */
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
      RouteOptions options = (RouteOptions) checkNotNull(postParams.get("options"), "routeOptions");
      String name = (String) checkNotNull(postParams.get("name"), "name");
      URI network = (URI) checkNotNull(postParams.get("network"), "network");
      options.name(name);
      options.network(network);
      return bindToRequest(request, options);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.googlecomputeengine.options.RouteOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.