

def prepare_resource_support(self, resource_type='', resource_id=''):
    'Returns a structured dict with information to help create/update a resource\n\n        @param resource_type    str\n        @param resource_id    str\n        @retval resource_data    GenericPrepareSupport\n        @throws BadRequest    A parameter is missing\n        @throws NotFound    An object with the specified resource_id does not exist\n        '
    if (not resource_type):
        raise BadRequest('The resource_type parameter is required')
    extended_resource_handler = ExtendedResourceContainer(self, self)
    resource_data = extended_resource_handler.create_prepare_resource_support(resource_id=self, prepare_resource_type=OT.GenericPrepareSupport, origin_resource_type=resource_type)
    extended_resource_handler.set_service_requests(resource_data.create_request, 'resource_registry', 'create', {
        'object': '$(object)',
    })
    extended_resource_handler.set_service_requests(resource_data.update_request, 'resource_registry', 'update', {
        'object': '$(object)',
    })
    return resource_data

dataset/ETHPy150Open ooici/pyon/pyon/ion/resregistry.py ResourceRegistry.prepare_resource_support/VarMisuse@52/202 `resource_id`->`self`