def get_prop_spec(client_factory, spec_type, properties):
 prop_spec = client_factory.create('ns0:PropertySpec')
 prop_spec.type = spec_type
 prop_spec.pathSet = properties
 return prop_spec

def get_prop_spec ( client_factory , spec_type , properties ) : prop_spec = client_factory . create ( 'ns0:PropertySpec' ) prop_spec . type = spec_type prop_spec . pathSet = properties return prop_spec
builds the property spec object .