Examples of templateOptions()


Examples of org.jclouds.compute.ComputeService.templateOptions()

           
         }

      }, onlySW);

      TemplateOptions options = apiThatCreatesNode.templateOptions().blockUntilRunning(false);
     
      assertTrue(options.as(JoyentCloudTemplateOptions.class).shouldGenerateKey().get());

      NodeMetadata node = Iterables.getOnlyElement(apiThatCreatesNode.createNodesInGroup("test", 1, options));
     
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

      if (osVersion != null) {
         builder.osVersionMatches(osVersion);
      }

      TemplateOptions options = service.templateOptions();
      List<Statement> statements = Lists.newLinkedList();

      if (adminAccess) {
         statements.add(AdminAccess.standard());
      }
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

              .build();


      ComputeService computeService = orderedRequestsSendResponses(orderedRequests, orderedResponses);

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions().as(GoogleComputeEngineTemplateOptions.class);

      getOnlyElement(computeService.createNodesInGroup("test", 1, options));
   }
}
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

              .build();


      ComputeService computeService = orderedRequestsSendResponses(orderedRequests, orderedResponses);

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions().as(GoogleComputeEngineTemplateOptions.class);
      options.tags(ImmutableSet.of("aTag"));
      NodeMetadata node = getOnlyElement(computeService.createNodesInGroup("test", 1, options));
      assertEquals(node.getImageId(), "gcel-12-04-v20121106");
   }
}
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

           
         }

      }, onlySW);

      TemplateOptions options = apiThatCreatesNode.templateOptions().blockUntilRunning(false);
     
      assertTrue(options.as(JoyentCloudTemplateOptions.class).shouldGenerateKey().get());

      NodeMetadata node = Iterables.getOnlyElement(apiThatCreatesNode.createNodesInGroup("test", 1, options));
     
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

              .build();


      ComputeService computeService = orderedRequestsSendResponses(orderedRequests, orderedResponses);

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions().as(GoogleComputeEngineTemplateOptions.class);
      options.tags(ImmutableSet.of("aTag"));
      getOnlyElement(computeService.createNodesInGroup("test", 1, options));
   }
}
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

              .build();


      ComputeService computeService = orderedRequestsSendResponses(orderedRequests, orderedResponses);

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions().as(GoogleComputeEngineTemplateOptions.class);
      options.tags(ImmutableSet.of("aTag"));
      getOnlyElement(computeService.createNodesInGroup("test", 1, options));
   }
}
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

           
         }

      }, onlySW);

      TemplateOptions options = apiThatCreatesNode.templateOptions().blockUntilRunning(false);
     
      assertTrue(options.as(JoyentCloudTemplateOptions.class).shouldGenerateKey().get());

      NodeMetadata node = Iterables.getOnlyElement(apiThatCreatesNode.createNodesInGroup("test", 1, options));
     
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

      if (osVersion != null) {
         builder.osVersionMatches(osVersion);
      }

      TemplateOptions options = service.templateOptions();
      List<Statement> statements = Lists.newLinkedList();

      if (adminAccess) {
         statements.add(AdminAccess.standard());
      }
View Full Code Here

Examples of org.jclouds.compute.ComputeService.templateOptions()

              .build();


      ComputeService computeService = orderedRequestsSendResponses(orderedRequests, orderedResponses);

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions().as(GoogleComputeEngineTemplateOptions.class);
      options.tags(ImmutableSet.of("aTag"));
      NodeMetadata node = getOnlyElement(computeService.createNodesInGroup("test", 1, options));
      assertEquals(node.getImageId(), "gcel-12-04-v20121106");
   }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.