def __init__(self): Resource.__init__(self) self.parser = reqparse.RequestParser() self.parser.add_argument('id', type=int) self.parser.add_argument('reference_designator', type=str) self.parser.add_argument('display_name', type=str)
def __init__(self, *args, **kwargs): Resource.__init__(self, *args, **kwargs) self.method_decorators = [] if stat_manager.save_stat: self.method_decorators.append(self._stat_regions) self.method_decorators.append(manage_stat_caller(stat_manager))
def __init__(self, *args, **kwargs): Resource.__init__(self, *args, **kwargs) self._host = None self.internal_logging_params = { 'X-Amzn-Trace-Id': 'Root=-', 'Authorization': '-', 'X-Forwarded-Authorization': '-', } # Pass to solr/clean from response, only for logging purposes
def __init__(self, quota=True, *args, **kwargs): Resource.__init__(self, *args, **kwargs) self.method_decorators = [] self.method_decorators.append(self._stat_regions) if stat_manager.save_stat: self.method_decorators.append(manage_stat_caller(stat_manager)) if quota: self.method_decorators.append(quota_control)
def __init__(self, *args, **kwargs): Resource.__init__(self, *args, **kwargs) self.region = None self.method_decorators = [] self.method_decorators.append(add_id_links()) self.method_decorators.append(add_address_poi_id(self)) self.method_decorators.append(add_computed_resources(self)) self.method_decorators.append(add_pagination_links()) self.method_decorators.append(clean_links()) self.method_decorators.append(authentification_required)
def __init__(self, *args, **kwargs): RestResource.__init__(self, *args, **kwargs) self._parser = reqparse.RequestParser() self._parser.add_argument("package", type=str) self._parser.add_argument("timeout", type=int) self._parser.add_argument("priority", type=int, default=1) self._parser.add_argument("options", type=str) self._parser.add_argument("machine", type=str) self._parser.add_argument("platform", type=str, default="windows") self._parser.add_argument("tags", type=str) self._parser.add_argument("custom", type=str) self._parser.add_argument("memory", type=str) self._parser.add_argument("clock", type=int) self._parser.add_argument("enforce_timeout", type=bool)
def __init__(self): """ Controller requires a Model (providing the CRUD methods) Model requires an Adapter (providing persistence) - Adapter must be specified via configuration file (Application scoped) - Model instantiation must be provided by subclass using Adapter - HTTP methods are bound to the Model CRUD methods """ Resource.__init__(self) # TODO get adapter from config adapter = None # instantiate model(adapter) model = BaseModel() assert isinstance(model, BaseModel)
def __init__(self, *args, **kwargs): RestResource.__init__(self, *args, **kwargs) self._parser = reqparse.RequestParser() self._parser.add_argument("name", type=str) self._parser.add_argument("url", type=str)
def __init__(self, **kwargs): Resource.__init__(self, **kwargs)
def __init__(self, *args, **kwargs): Resource.__init__(self, *args, **kwargs) self._host = None self.internal_logging_params = { 'X-Amzn-Trace-Id': 'Root=-', } # Pass to solr only for logging purposes, note that this will be returned back to the user by solr
def __init__(self, *args, **kwargs): Resource.__init__(self, *args, **kwargs) self._host = None