Package com.ibm.cloud.is.vpc.v1.model
Class Image
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.Image
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Image extends com.ibm.cloud.sdk.core.service.model.GenericModelImage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImage.EncryptionThe type of encryption used on the image.static interfaceImage.ResourceTypeThe resource type.static interfaceImage.StatusThe status of this image - available: image can be used (provisionable) - deleting: image is being deleted, and can no longer be used to provision new resources - deprecated: image is administratively slated to become `obsolete` - failed: image is corrupt or did not pass validation - obsolete: image administratively set to not be used for new resources - pending: image is being imported and is not yet `available` - unusable: image cannot be used (see `status_reasons[]` for possible remediation) The enumerated values for this property are expected to expand in the future.static interfaceImage.VisibilityThe visibility of this image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageCatalogOfferinggetCatalogOffering()Gets the catalogOffering.DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.DategetDeprecationAt()Gets the deprecationAt.StringgetEncryption()Gets the encryption.EncryptionKeyReferencegetEncryptionKey()Gets the encryptionKey.ImageFilegetFile()Gets the file.StringgetHref()Gets the href.StringgetId()Gets the id.LonggetMinimumProvisionedSize()Gets the minimumProvisionedSize.StringgetName()Gets the name.DategetObsolescenceAt()Gets the obsolescenceAt.OperatingSystemgetOperatingSystem()Gets the operatingSystem.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.StringgetResourceType()Gets the resourceType.VolumeReferencegetSourceVolume()Gets the sourceVolume.StringgetStatus()Gets the status.List<ImageStatusReason>getStatusReasons()Gets the statusReasons.StringgetVisibility()Gets the visibility.
-
-
-
Method Detail
-
getCatalogOffering
public ImageCatalogOffering getCatalogOffering()
Gets the catalogOffering.- Returns:
- the catalogOffering
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the image was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this image.- Returns:
- the crn
-
getDeprecationAt
public Date getDeprecationAt()
Gets the deprecationAt. The deprecation date and time (UTC) for this image. If absent, no deprecation date and time has been set.- Returns:
- the deprecationAt
-
getEncryption
public String getEncryption()
Gets the encryption. The type of encryption used on the image.- Returns:
- the encryption
-
getEncryptionKey
public EncryptionKeyReference getEncryptionKey()
Gets the encryptionKey. The key that will be used to encrypt volumes created from this image (unless an alternate `encryption_key` is specified at volume creation). This property will be present for images with an `encryption` type of `user_managed`.- Returns:
- the encryptionKey
-
getFile
public ImageFile getFile()
Gets the file. Details for the stored image file.- Returns:
- the file
-
getHref
public String getHref()
Gets the href. The URL for this image.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this image.- Returns:
- the id
-
getMinimumProvisionedSize
public Long getMinimumProvisionedSize()
Gets the minimumProvisionedSize. The minimum size (in gigabytes) of a volume onto which this image may be provisioned. This property may be absent if the image has a `status` of `pending` or `failed`.- Returns:
- the minimumProvisionedSize
-
getName
public String getName()
Gets the name. The name for this image. The name is unique across all images in the region.- Returns:
- the name
-
getObsolescenceAt
public Date getObsolescenceAt()
Gets the obsolescenceAt. The obsolescence date and time (UTC) for this image. If absent, no obsolescence date and time has been set.- Returns:
- the obsolescenceAt
-
getOperatingSystem
public OperatingSystem getOperatingSystem()
Gets the operatingSystem. The operating system included in this image.- Returns:
- the operatingSystem
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this image.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getSourceVolume
public VolumeReference getSourceVolume()
Gets the sourceVolume. The volume used to create this image (this may be [deleted](https://cloud.ibm.com/apidocs/vpc#deleted-resources)). If absent, this image was not created from a volume.- Returns:
- the sourceVolume
-
getStatus
public String getStatus()
Gets the status. The status of this image - available: image can be used (provisionable) - deleting: image is being deleted, and can no longer be used to provision new resources - deprecated: image is administratively slated to become `obsolete` - failed: image is corrupt or did not pass validation - obsolete: image administratively set to not be used for new resources - pending: image is being imported and is not yet `available` - unusable: image cannot be used (see `status_reasons[]` for possible remediation) The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the image on which the unexpected property value was encountered.- Returns:
- the status
-
getStatusReasons
public List<ImageStatusReason> getStatusReasons()
Gets the statusReasons. The reasons for the current status (if any): - `encrypted_data_key_invalid`: image cannot be decrypted with the specified `encryption_key` - `encryption_key_deleted`: image unusable because its `encryption_key` was deleted - `encryption_key_disabled`: image unusable until its `encryption_key` is re-enabled - `image_data_corrupted`: image data is corrupt, or is not in the specified format - `image_provisioned_size_unsupported`: image requires a boot volume size greater than the maximum supported value - `image_request_in_progress`: image operation is in progress (such as an import from Cloud Object Storage) - `image_request_queued`: image request has been accepted but the requested operation has not started The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.- Returns:
- the statusReasons
-
getVisibility
public String getVisibility()
Gets the visibility. The visibility of this image. - `private`: Visible only to this account - `public`: Visible to all accounts.- Returns:
- the visibility
-
-