Tabnine Logo
CIMOperatingSystem
Code IndexAdd Tabnine to your IDE (free)

How to use
CIMOperatingSystem
in
org.jclouds.compute.domain

Best Java code snippets using org.jclouds.compute.domain.CIMOperatingSystem (Showing top 20 results out of 315)

origin: jclouds/legacy-jclouds

/**
 * {@inheritDoc}
 */
@Override
public CIMOperatingSystem build() {
  return new CIMOperatingSystem(family, name, version, arch, description, is64Bit, osType);
}
origin: jclouds/legacy-jclouds

public static CIMOperatingSystem toComputeOs(Vm vm) {
 return CIMOperatingSystem.toComputeOs(vm.getOperatingSystemSection());
}
origin: io.cloudsoft.jclouds/jclouds-compute

public Builder fromCIMOperatingSystem(CIMOperatingSystem in) {
  return fromOperatingSystem(in).osType(in.getOsType());
}
origin: io.cloudsoft.jclouds/jclouds-compute

/**
 * {@inheritDoc}
 */
@Override
public CIMOperatingSystem build() {
  return new CIMOperatingSystem(family, name, version, arch, description, is64Bit, osType);
}
origin: org.apache.jclouds.api/vcloud

public static CIMOperatingSystem toComputeOs(Vm vm) {
 return CIMOperatingSystem.toComputeOs(vm.getOperatingSystemSection());
}
origin: jclouds/legacy-jclouds

public Builder fromCIMOperatingSystem(CIMOperatingSystem in) {
  return fromOperatingSystem(in).osType(in.getOsType());
}
origin: org.apache.jclouds/jclouds-compute

/**
 * {@inheritDoc}
 */
@Override
public CIMOperatingSystem build() {
  return new CIMOperatingSystem(family, name, version, arch, description, is64Bit, osType);
}
origin: io.cloudsoft.jclouds.api/vcloud

public static CIMOperatingSystem toComputeOs(Vm vm) {
 return CIMOperatingSystem.toComputeOs(vm.getOperatingSystemSection());
}
origin: org.apache.jclouds/jclouds-compute

public Builder fromCIMOperatingSystem(CIMOperatingSystem in) {
  return fromOperatingSystem(in).osType(in.getOsType());
}
origin: apache/jclouds

/**
 * {@inheritDoc}
 */
@Override
public CIMOperatingSystem build() {
  return new CIMOperatingSystem(family, name, version, arch, description, is64Bit, osType);
}
origin: jclouds/legacy-jclouds

public static CIMOperatingSystem toComputeOs(Envelope ovf) {
 return toComputeOs(ovf.getVirtualSystem().getOperatingSystemSection());
}
origin: apache/jclouds

public Builder fromCIMOperatingSystem(CIMOperatingSystem in) {
  return fromOperatingSystem(in).osType(in.getOsType());
}
origin: jclouds/legacy-jclouds

public void testCIMDEBIANSupportsApt() {
 assert supportsApt().apply(new CIMOperatingSystem(OSType.DEBIAN, "", null, "description"));
 assert supportsApt().apply(new CIMOperatingSystem(OSType.DEBIAN_64, "", null, "description"));
}
origin: io.cloudsoft.jclouds/jclouds-compute

public static CIMOperatingSystem toComputeOs(Envelope ovf) {
 return toComputeOs(ovf.getVirtualSystem().getOperatingSystemSection());
}
origin: jclouds/legacy-jclouds

public void testCIMCENTOSDoesntSupportApt() {
 assert !supportsApt().apply(new CIMOperatingSystem(OSType.CENTOS, "", null, "description"));
 assert !supportsApt().apply(new CIMOperatingSystem(OSType.CENTOS_64, "", null, "description"));
}
origin: org.apache.jclouds/jclouds-compute

public static CIMOperatingSystem toComputeOs(Envelope ovf) {
 return toComputeOs(ovf.getVirtualSystem().getOperatingSystemSection());
}
origin: jclouds/legacy-jclouds

public void testCIMRHELDoesntSupportApt() {
 assert !supportsApt().apply(new CIMOperatingSystem(OSType.RHEL, "", null, "description"));
 assert !supportsApt().apply(new CIMOperatingSystem(OSType.RHEL_64, "", null, "description"));
}
origin: apache/jclouds

public static CIMOperatingSystem toComputeOs(Envelope ovf) {
 return toComputeOs(ovf.getVirtualSystem().getOperatingSystemSection());
}
origin: jclouds/legacy-jclouds

public void testCIMDEBIANDoesntSupportYum() {
 assert !supportsYum().apply(new CIMOperatingSystem(OSType.DEBIAN, "", null, "description"));
 assert !supportsYum().apply(new CIMOperatingSystem(OSType.DEBIAN_64, "", null, "description"));
}
origin: org.jclouds.labs/vcloud-director

@Override
public Image apply(VAppTemplate from) {
 checkNotNull(from, "VAppTemplate");
 Envelope ovf = templateToEnvelope.apply(from);
 ImageBuilder builder = new ImageBuilder();
 builder.ids(from.getHref().toASCIIString());
 builder.uri(from.getHref());
 builder.name(from.getName());
 Link vdc = Iterables.find(checkNotNull(from, "from").getLinks(), LinkPredicates.typeEquals(VCloudDirectorMediaType.VDC));
 if (vdc != null) {
   builder.location(findLocationForResource.apply(vdc));
 } else {
   // otherwise, it could be in a public catalog, which is not assigned to a VDC
 }
 builder.description(from.getDescription() != null ? from.getDescription() : from.getName());
 builder.operatingSystem(CIMOperatingSystem.toComputeOs(ovf));
 builder.status(toPortableImageStatus.get(from.getStatus()));
 return builder.build();
}
org.jclouds.compute.domainCIMOperatingSystem

Javadoc

Operating system based on DMTF CIM model.

Most used methods

  • <init>
  • toComputeOs
  • getOsType
    CIM OSType of the image

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now