当前位置: 首页>>代码示例>>Java>>正文


Java ImageReferenceInner类代码示例

本文整理汇总了Java中com.microsoft.azure.management.compute.implementation.ImageReferenceInner的典型用法代码示例。如果您正苦于以下问题:Java ImageReferenceInner类的具体用法?Java ImageReferenceInner怎么用?Java ImageReferenceInner使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ImageReferenceInner类属于com.microsoft.azure.management.compute.implementation包,在下文中一共展示了ImageReferenceInner类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateDiskCustomProperties

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
private void updateDiskCustomProperties(VirtualMachineInner vm, EnumerationContext ctx,
                                        DiskState diskToUpdate) {
    ImageReferenceInner imageReference = vm.storageProfile()
            .imageReference();
    diskToUpdate.sourceImageReference = URI.create(imageReferenceToImageId(imageReference));
    diskToUpdate.bootOrder = 1;
    if (diskToUpdate.customProperties == null) {
        diskToUpdate.customProperties = new HashMap<>();
    }
    if (vm.storageProfile().osDisk() != null
            && vm.storageProfile().osDisk().caching() != null) {
        diskToUpdate.customProperties.put(AZURE_OSDISK_CACHING,
                vm.storageProfile().osDisk().caching().name());
    }
    diskToUpdate.computeHostLink = ctx.parentCompute.documentSelfLink;
    if (StringUtils.isEmpty(diskToUpdate.endpointLink)) {
        diskToUpdate.endpointLink = ctx.request.endpointLink;
    }
    AdapterUtils.addToEndpointLinks(diskToUpdate, ctx.request.endpointLink);
}
 
开发者ID:vmware,项目名称:photon-model,代码行数:21,代码来源:AzureComputeEnumerationAdapterService.java

示例2: ImageReference

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
/**
 * Creates ImageReference.
 *
 * @param inner the inner object
 */
public ImageReference(ImageReferenceInner inner) {
    super(inner);
    this.withPublisher(inner.publisher())
            .withOffer(inner.offer())
            .withVersion(inner.version())
            .withSku(inner.sku())
            .withId(inner.id());
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:14,代码来源:ImageReference.java

示例3: inner

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
@Override
public ImageReferenceInner inner() {
    if (super.inner() != null) {
        return super.inner();
    }
    ImageReferenceInner imageReferenceInner = new ImageReferenceInner();
    imageReferenceInner
            .withPublisher(this.publisher())
            .withOffer(this.offer())
            .withVersion(this.version())
            .withSku(this.sku())
            .withId(this.id());
    return imageReferenceInner;
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:15,代码来源:ImageReference.java

示例4: getImageReference

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
private ImageReferenceInner getImageReference(String imageId) {
    String[] imageIdParts = imageId.split(":");
    if (imageIdParts.length != 4) {
        throw new IllegalArgumentException("Azure image ID should be of the format "
                + "<publisher>:<offer>:<sku>:<version>");
    }

    ImageReferenceInner imageReference = new ImageReferenceInner();
    imageReference.withPublisher(imageIdParts[0]);
    imageReference.withOffer(imageIdParts[1]);
    imageReference.withSku(imageIdParts[2]);
    imageReference.withVersion(imageIdParts[3]);

    return imageReference;
}
 
开发者ID:vmware,项目名称:photon-model,代码行数:16,代码来源:AzureInstanceService.java

示例5: imageReferenceToImageId

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
/**
 * Converts image reference to image identifier.
 */
private String imageReferenceToImageId(ImageReferenceInner imageReference) {
    return imageReference.publisher() + ":" + imageReference.offer() + ":"
            + imageReference.sku() + ":" + imageReference.version();
}
 
开发者ID:vmware,项目名称:photon-model,代码行数:8,代码来源:AzureComputeEnumerationAdapterService.java

示例6: getPropertyValue

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
@Override
protected String getPropertyValue(VirtualMachine vm) {
  ImageReferenceInner image = vm.storageProfile().imageReference();
  return String.format("Region: %s; Publisher: %s; Offer: %s; SKU: %s; Version: %s;",
      vm.regionName(), image.publisher(), image.sku(), image.offer(), image.version());
}
 
开发者ID:cloudera,项目名称:director-azure-plugin,代码行数:7,代码来源:AzureComputeInstance.java

示例7: imageReference

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
/**
 * Get the imageReference value.
 *
 * @return the imageReference value
 */
public ImageReferenceInner imageReference() {
    return this.imageReference;
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:9,代码来源:VirtualMachineScaleSetUpdateStorageProfile.java

示例8: withImageReference

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
/**
 * Set the imageReference value.
 *
 * @param imageReference the imageReference value to set
 * @return the VirtualMachineScaleSetUpdateStorageProfile object itself.
 */
public VirtualMachineScaleSetUpdateStorageProfile withImageReference(ImageReferenceInner imageReference) {
    this.imageReference = imageReference;
    return this;
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:11,代码来源:VirtualMachineScaleSetUpdateStorageProfile.java

示例9: withImageReference

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
/**
 * Set the imageReference value.
 *
 * @param imageReference the imageReference value to set
 * @return the VirtualMachineScaleSetStorageProfile object itself.
 */
public VirtualMachineScaleSetStorageProfile withImageReference(ImageReferenceInner imageReference) {
    this.imageReference = imageReference;
    return this;
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:11,代码来源:VirtualMachineScaleSetStorageProfile.java

示例10: withImageReference

import com.microsoft.azure.management.compute.implementation.ImageReferenceInner; //导入依赖的package包/类
/**
 * Set the imageReference value.
 *
 * @param imageReference the imageReference value to set
 * @return the StorageProfile object itself.
 */
public StorageProfile withImageReference(ImageReferenceInner imageReference) {
    this.imageReference = imageReference;
    return this;
}
 
开发者ID:Azure,项目名称:azure-libraries-for-java,代码行数:11,代码来源:StorageProfile.java


注:本文中的com.microsoft.azure.management.compute.implementation.ImageReferenceInner类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。