'return a service as a dict'

def create_dict(self):

    self.data['apiVersion'] = 'v1'
    self.data['kind'] = 'PersistentVolumeClaim'
    self.data['metadata'] = {}
    self.data['metadata']['name'] = self.name
    self.data['spec'] = {}
    self.data['spec']['accessModes'] = ['ReadWriteOnce']
    if self.access_modes:
        self.data['spec']['accessModes'] = self.access_modes
    if self.selector:
        self.data['spec']['selector'] = {'matchLabels': self.selector}
    self.data['spec']['resources'] = {}
    self.data['spec']['resources']['requests'] = {}
    self.data['spec']['resources']['requests']['storage'] = self.vol_capacity
    if self.storage_class_name:
        self.data['spec']['storageClassName'] = self.storage_class_name
