Class FcdRenameExtendInflateDeleteOperations


  • @Sample(name="fcd-renameextendinflatedeleteoperations",
            description="This sample renamnes an FCD,extends capacity of FCD, inflates a sparse or thin-provisioned FCD up to the full size and deletes FCD")
    public class FcdRenameExtendInflateDeleteOperations
    extends com.vmware.connection.ConnectedVimServiceBase
     FcdRenameExtendInflateDeleteOperations
    
     This sample executes below operations on a given VStorageObject
     from vslm:
    
     1. Rename a given virtual storage object.
     2. Extend a virtual storage object capacity.
     3. Inflate a sparse or thin-provisioned virtual disk up to the full size.
     4. Delete a given virtual storage object.
    
     Pre-requisite :        1. Existing VStorageObject ID
    
     Parameters:
     url                    [required] : url of the web service
     username               [required] : username for the authentication
     password               [required] : password for the authentication
     vstorageobjectid       [required] : Uuid of the vstorageobject
     newvstorageobjectname  [required] : The new name for the virtual storage object.
     newcapacityinmb        [required] : The new capacity of the virtual disk in MB,
                                         which should be greater than the original
                                         disk size.
    
     Command Line:
     Rename a virtual storage object.
     run.bat com.vmware.fcd.FcdRenameExtendInflateDeleteOperations --url [webserviceurl]
     --username [username] --password [password] --vstorageobjectid [vstorageobjectid]
     --newvstorageobjectname [newvstorageobjectname] --newcapacityinmb [newcapacityinmb]
     
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.vmware.connection.ConnectedVimServiceBase

        com.vmware.connection.ConnectedVimServiceBase.ConnectionException
    • Field Summary

      • Fields inherited from class com.vmware.connection.ConnectedVimServiceBase

        PROP_ME_NAME, SVC_INST_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void setNewCapacityInMB​(long newCapacityInMB)  
      void setNewVStorageObjectName​(java.lang.String newVStorageObjectName)  
      void setVStorageObjectId​(java.lang.String vStorageObjectId)  
      • Methods inherited from class com.vmware.connection.ConnectedVimServiceBase

        basicConnectionFromConnection, connect, disconnect, getServiceInstanceReference, setConnection, setHostConnection
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FcdRenameExtendInflateDeleteOperations

        public FcdRenameExtendInflateDeleteOperations()
    • Method Detail

      • setVStorageObjectId

        @Option(name="vstorageobjectid",
                required=true,
                description="Uuid of the vstorageobject.")
        public void setVStorageObjectId​(java.lang.String vStorageObjectId)
        Parameters:
        vStorageObjectId - the vStorageObjectId to set
      • setNewVStorageObjectName

        @Option(name="newvstorageobjectname",
                required=true,
                description="The new name for the virtual storage object.")
        public void setNewVStorageObjectName​(java.lang.String newVStorageObjectName)
        Parameters:
        newVStorageObjectName - the newVStorageObjectName to set
      • setNewCapacityInMB

        @Option(name="newcapacityinmb",
                required=true,
                description="The new capacity of the virtual disk in MB,which should be greater than the original disk size.")
        public void setNewCapacityInMB​(long newCapacityInMB)
        Parameters:
        newCapacityInMB - the newCapacityInMB to set.
      • run

        @Action
        public void run()
                 throws java.lang.Exception
        Throws:
        java.lang.Exception