def get_details(self):
        """
        :rtype list[VmDataField]
        """
        data = []
        if isinstance(self.model, vCenterCloneVMFromVMResourceModel):
            data.append(VmDetailsProperty(key='Cloned VM Name', value=self.model.vcenter_vm))

        if isinstance(self.model, VCenterDeployVMFromLinkedCloneResourceModel):
            template = self.model.vcenter_vm
            snapshot = self.model.vcenter_vm_snapshot
            data.append(VmDetailsProperty(key='Cloned VM Name',value= '{0} (snapshot: {1})'.format(template, snapshot)))

        if isinstance(self.model, vCenterVMFromImageResourceModel):
            data.append(VmDetailsProperty(key='Base Image Name', value=self.model.vcenter_image.split('/')[-1]))

        if isinstance(self.model, vCenterVMFromTemplateResourceModel):
            data.append(VmDetailsProperty(key='Template Name', value=self.model.vcenter_template))

        return data
def get_details ( self ) : data = [ ] if isinstance ( self . model , vCenterCloneVMFromVMResourceModel ) : data . append ( VmDetailsProperty ( key = 'Cloned VM Name' , value = self . model . vcenter_vm ) ) if isinstance ( self . model , VCenterDeployVMFromLinkedCloneResourceModel ) : template = self . model . vcenter_vm snapshot = self . model . vcenter_vm_snapshot data . append ( VmDetailsProperty ( key = 'Cloned VM Name' , value = '{0} (snapshot: {1})' . format ( template , snapshot ) ) ) if isinstance ( self . model , vCenterVMFromImageResourceModel ) : data . append ( VmDetailsProperty ( key = 'Base Image Name' , value = self . model . vcenter_image . split ( '/' ) [ - 1 ] ) ) if isinstance ( self . model , vCenterVMFromTemplateResourceModel ) : data . append ( VmDetailsProperty ( key = 'Template Name' , value = self . model . vcenter_template ) ) return data
:rtype list[VmDataField]