The plot of Gn 2–11 (creation, the flood, renewed creation) has been borrowed from creation-flood stories attested in Mesopotamian literature of the second and early first millennia. – Genesis introduction, USCCB > Bible
CCC 105 God is the author of Sacred Scripture. “The divinely revealed realities, which are contained and presented in the text of Sacred Scripture, have been written down under the inspiration of the Holy Spirit.” [DV 11].
Then one must conclude from USCCB’s Genesis – Introduction that “God, the author of Sacred Scripture borrowed the plot of Gn 2–11 (creation, the flood, renewed creation) from creation-flood stories in Mesopotamian literature.”
[Update July 14, 2017]