本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
Cloud 客户端库
Cloud 客户端库是推荐用于调用 Google Cloud API 的最新客户端库。
这些客户端库使用每种受支持语言的自然规范和样式,为开发者带来优化的体验。它们还可减少您必须编写的样板代码,因为它们在设计时考虑让您使用服务隐喻,而不是实现细节或服务 API 概念。
如需详细了解 Cloud API 的客户端库,请参阅客户端库说明。
使用 Cloud 客户端库
Cloud 客户端库(按语言)
下表按支持的语言提供了使用 Cloud 客户端库的入门链接。每种语言的 GitHub 代码库页面都列出了该语言的 Cloud 客户端库支持的 Cloud Platform 服务/API。该页面还提供了单个客户端库的安装说明,该库提供了 API 的接口。
Google Cloud 客户端库 |
安装和参考 |
Go |
|
Java |
|
Node.js |
|
Python |
|
Ruby |
|
PHP |
|
C# |
|
C++ |
|
Cloud 客户端库(按服务)
您还可以下载各个Trusted Cloud by S3NS 服务的 Cloud 客户端库:如需查看更为详细的使用入门说明,请参阅相关产品的“客户端库”页面。例如,如果您只想使用 Pub/Sub,则可以在 Pub/Sub 客户端库中找到相应入门信息。
如果特定语言的 Cloud 客户端库不支持您要使用的服务,请使用该语言的 Google API 客户端库。
搭配使用 Cloud 客户端库和 Cloud Code
Cloud Code 是 VS Code、IntelliJ 和 Cloud Shell 中用来开发云应用的工具;借助该工具,您可以轻松使用 Cloud 客户端库,而无需离开 IDE。您可以轻松执行以下操作:
- 浏览 Cloud API
- 阅读 Cloud API 的文档
- 启用 Cloud API
- 将 Cloud 客户端库添加到您的项目中
如需详细了解如何将 Cloud 客户端库与 Cloud Code 搭配使用,请参阅以下文档:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-11。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[[["Cloud Client Libraries are the recommended client libraries for interacting with Google Cloud APIs, offering an enhanced developer experience."],["These libraries are designed to align with each language's conventions, thereby reducing the amount of boilerplate code needed by developers."],["Cloud Client Libraries are available for various languages, including Go, Java, Node.js, Python, Ruby, PHP, C#, and C++, with detailed installation and reference guides for each."],["Cloud Code allows for easy integration and use of Cloud Client Libraries directly within popular IDEs such as VS Code, IntelliJ, and Cloud Shell."],["Users can also download Cloud Client Libraries specifically for individual Google Cloud services, like Pub/Sub, if they do not wish to download everything at once."]]],[]]