All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.SavedAttachedDisk.html Maven / Gradle / Ivy







SavedAttachedDisk (Compute Engine API alpha-rev20200526-1.30.9)












com.google.api.services.compute.model

Class SavedAttachedDisk

    • Constructor Detail

      • SavedAttachedDisk

        public SavedAttachedDisk()
    • Method Detail

      • getAutoDelete

        public Boolean getAutoDelete()
        Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        Returns:
        value or null for none
      • setAutoDelete

        public SavedAttachedDisk setAutoDelete(Boolean autoDelete)
        Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        Parameters:
        autoDelete - autoDelete or null for none
      • getBoot

        public Boolean getBoot()
        Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
        Returns:
        value or null for none
      • setBoot

        public SavedAttachedDisk setBoot(Boolean boot)
        Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
        Parameters:
        boot - boot or null for none
      • getDeviceName

        public String getDeviceName()
        Specifies the name of the disk attached to the source instance.
        Returns:
        value or null for none
      • setDeviceName

        public SavedAttachedDisk setDeviceName(String deviceName)
        Specifies the name of the disk attached to the source instance.
        Parameters:
        deviceName - deviceName or null for none
      • getDiskEncryptionKey

        public CustomerEncryptionKey getDiskEncryptionKey()
        The encryption key for the disk.
        Returns:
        value or null for none
      • setDiskEncryptionKey

        public SavedAttachedDisk setDiskEncryptionKey(CustomerEncryptionKey diskEncryptionKey)
        The encryption key for the disk.
        Parameters:
        diskEncryptionKey - diskEncryptionKey or null for none
      • getDiskSizeGb

        public Long getDiskSizeGb()
        The size of the disk in base-2 GB.
        Returns:
        value or null for none
      • setDiskSizeGb

        public SavedAttachedDisk setDiskSizeGb(Long diskSizeGb)
        The size of the disk in base-2 GB.
        Parameters:
        diskSizeGb - diskSizeGb or null for none
      • getDiskType

        public String getDiskType()
        [Output Only] URL of the disk type resource. For example: projects/project/zones/zone/diskTypes /pd-standard or pd-ssd
        Returns:
        value or null for none
      • setDiskType

        public SavedAttachedDisk setDiskType(String diskType)
        [Output Only] URL of the disk type resource. For example: projects/project/zones/zone/diskTypes /pd-standard or pd-ssd
        Parameters:
        diskType - diskType or null for none
      • getGuestOsFeatures

        public List<GuestOsFeature> getGuestOsFeatures()
        A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
        Returns:
        value or null for none
      • setGuestOsFeatures

        public SavedAttachedDisk setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
        A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options.
        Parameters:
        guestOsFeatures - guestOsFeatures or null for none
      • getIndex

        public Integer getIndex()
        Specifies zero-based index of the disk that is attached to the source instance.
        Returns:
        value or null for none
      • setIndex

        public SavedAttachedDisk setIndex(Integer index)
        Specifies zero-based index of the disk that is attached to the source instance.
        Parameters:
        index - index or null for none
      • getInterface

        public String getInterface()
        Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
        Returns:
        value or null for none
      • setInterface

        public SavedAttachedDisk setInterface(String interface__)
        Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME.
        Parameters:
        interface__ - interface__ or null for none
      • getKind

        public String getKind()
        [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
        Returns:
        value or null for none
      • setKind

        public SavedAttachedDisk setKind(String kind)
        [Output Only] Type of the resource. Always compute#attachedDisk for attached disks.
        Parameters:
        kind - kind or null for none
      • getLicenses

        public List<String> getLicenses()
        [Output Only] Any valid publicly visible licenses.
        Returns:
        value or null for none
      • setLicenses

        public SavedAttachedDisk setLicenses(List<String> licenses)
        [Output Only] Any valid publicly visible licenses.
        Parameters:
        licenses - licenses or null for none
      • getMode

        public String getMode()
        The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
        Returns:
        value or null for none
      • setMode

        public SavedAttachedDisk setMode(String mode)
        The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY.
        Parameters:
        mode - mode or null for none
      • getSource

        public String getSource()
        Specifies a URL of the disk attached to the source instance.
        Returns:
        value or null for none
      • setSource

        public SavedAttachedDisk setSource(String source)
        Specifies a URL of the disk attached to the source instance.
        Parameters:
        source - source or null for none
      • getStorageBytes

        public Long getStorageBytes()
        [Output Only] A size of the storage used by the disk's snapshot by this machine image.
        Returns:
        value or null for none
      • setStorageBytes

        public SavedAttachedDisk setStorageBytes(Long storageBytes)
        [Output Only] A size of the storage used by the disk's snapshot by this machine image.
        Parameters:
        storageBytes - storageBytes or null for none
      • getStorageBytesStatus

        public String getStorageBytesStatus()
        [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- date.
        Returns:
        value or null for none
      • setStorageBytesStatus

        public SavedAttachedDisk setStorageBytesStatus(String storageBytesStatus)
        [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to- date.
        Parameters:
        storageBytesStatus - storageBytesStatus or null for none
      • getType

        public String getType()
        Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
        Returns:
        value or null for none
      • setType

        public SavedAttachedDisk setType(String type)
        Specifies the type of the attached disk, either SCRATCH or PERSISTENT.
        Parameters:
        type - type or null for none

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy