def copy_config_from_repo(namespace, workspace, from_cnamespace,<EOL>from_config, from_snapshot_id, to_cnamespace,<EOL>to_config):
body = {<EOL>"<STR_LIT>"  : from_cnamespace,<EOL>"<STR_LIT>"       : from_config,<EOL>"<STR_LIT>" : from_snapshot_id,<EOL>"<STR_LIT>"    : to_cnamespace,<EOL>"<STR_LIT>"         : to_config<EOL>}<EOL>uri = "<STR_LIT>".format(<EOL>namespace, workspace)<EOL>return __post(uri, json=body)<EOL>
Copy a method config from the methods repository to a workspace.

    Args:
        namespace (str): project to which workspace belongs
        workspace (str): Workspace name
        from_cnamespace (str): Source configuration namespace
        from_config (str): Source configuration name
        from_snapshot_id (int): Source configuration snapshot_id
        to_cnamespace (str): Target configuration namespace
        to_config (str): Target configuration name

    Swagger:
        https://api.firecloud.org/#!/Method_Configurations/copyFromMethodRepo
        DUPLICATE: https://api.firecloud.org/#!/Method_Repository/copyFromMethodRepo