我正在将Google服务引擎中的Python服务迁移到GCE / GKE,并且可以使用一些帮助来识别当前 生产环境 级别的SLA方法,以管理Google Cloud 端存储中的对象 .
大多数Google's storage docs引用的是 google.cloud.storage
库 . 这看起来很简单 . 但是,截至目前 - 2017年1月 - 顶部有一个 Headers 为 Beta 的大 Headers ,并且没有SLA或弃用政策 . 我'd prefer to use an SLA'服务 .
经过大量的搜索后,我发现了这个替代的JSON API示例:https://github.com/GoogleCloudPlatform/storage-file-transfer-json-python但它明确了它的支持 .
有关使用哪种API的建议?
或者更好的自举示例?
提前致谢
1 回答
谷歌 Cloud 存储服务尚未进入测试阶段 . 它有SLA和弃用政策 . 您找到的客户端库Google Cloud Client Library for Python (google-cloud)处于测试阶段,这意味着's possible that a future version of it might in some cases make backwards-incompatible changes. However, it'也是最易于使用的客户端库的当前黄金标准 .
我建议你使用那个 . 另一种选择是Google Python API Client Library,它不是测试版,但我发现Google Cloud Client Library for Python更容易使用,这很重要 .