def update(context, args): params = { k: getattr(args, k) for k in ["name", "team_id", "data", "state", "id", "etag"] } params["state"] = active_string(params["state"]) return feeder.update(context, **params)
def update(context, args): params = { k: getattr(args, k) for k in ["id", "etag", "name", "label", "description", "state"] } params["state"] = active_string(params["state"]) return product.update(context, **params)
def update(context, args): params = { k: getattr(args, k) for k in ["id", "name", "country", "state", "etag", "external"] } params["state"] = active_string(params["state"]) return team.update(context, **params)
def create(context, args): params = { k: getattr(args, k) for k in ["name", "password", "email", "team_id", "fullname", "state"] } params["fullname"] = params["fullname"] or params["name"] params["state"] = active_string(params["state"]) return user.create(context, **params)
def update(context, args): component_info = component.get(context, args.id) etag = component_info.json()["component"]["etag"] return component.update(context, id=args.id, etag=etag, state=active_string(args.state))
def create(context, args): data = validate_json(context, "data", args.data) state = active_string(args.state) team_id = args.team_id or identity.my_team_id(context) return remoteci.create(context, name=args.name, team_id=team_id, data=data, state=state)
def update(context, args): data = validate_json(context, "data", args.data) state = active_string(args.state) return remoteci.update( context, id=args.id, etag=args.etag, name=args.name, team_id=args.team_id, data=data, state=state, )
def create(context, args): params = { k: getattr(args, k) for k in [ "name", "product_id", "component_types", "state", "export_control", "data", ] } params["component_types"] = (params["component_types"].split(",") if params["component_types"] is not None else []) params["state"] = active_string(params["state"]) return topic.create(context, **params)
def create(context, args): params = { k: getattr(args, k) for k in [ "name", "type", "canonical_project_name", "title", "message", "url", "topic_id", "state", "data", ] } params["data"] = validate_json(context, "data", params["data"]) params["state"] = active_string(params["state"]) return component.create(context, **params)
def create(context, args): params = {k: getattr(args, k) for k in ["name", "country", "state"]} params["state"] = active_string(params["state"]) return team.create(context, **params)
def create(context, args): data = validate_json(context, "data", args.data) state = active_string(args.state) return test.create(context, name=args.name, data=data, state=state)